Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: fix get PostgreSQL tableMeta error when using sharding JDBC #2812

Merged
merged 4 commits into from
Jun 19, 2020
Merged

bugfix: fix get PostgreSQL tableMeta error when using sharding JDBC #2812

merged 4 commits into from
Jun 19, 2020

Conversation

yyjgit66
Copy link
Contributor

Ⅰ. Describe what this PR did

Modify data type compatible with PostgreSQL

Ⅱ. Does this pull request fix one issue?

fixes #2807

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@slievrly
Copy link
Member

@yyjgit66
image

@@ -137,7 +137,7 @@ private TableMeta resultSetMetaToSchema(DatabaseMetaData dbmd, String tableName)
col.setColumnDef(rsColumns.getString("COLUMN_DEF"));
col.setSqlDataType(rsColumns.getInt("SQL_DATA_TYPE"));
col.setSqlDatetimeSub(rsColumns.getInt("SQL_DATETIME_SUB"));
col.setCharOctetLength(rsColumns.getInt("CHAR_OCTET_LENGTH"));
col.setCharOctetLength(rsColumns.getString("CHAR_OCTET_LENGTH"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getObject?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

与测试用例中的代码冲突了,还是改成getObject吧。

@slievrly slievrly changed the base branch from 1.2.0 to develop June 19, 2020 03:55
Copy link
Contributor

@wangliang181230 wangliang181230 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改成getObject

@slievrly slievrly added module/rm-datasource rm-datasource module first-time contributor first-time contributor labels Jun 19, 2020
Copy link
Contributor

@l81893521 l81893521 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codecov-commenter
Copy link

codecov-commenter commented Jun 19, 2020

Codecov Report

Merging #2812 into develop will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #2812   +/-   ##
==========================================
  Coverage      50.24%   50.24%           
  Complexity      2941     2941           
==========================================
  Files            587      587           
  Lines          18869    18869           
  Branches        2269     2269           
==========================================
  Hits            9480     9480           
  Misses          8449     8449           
  Partials         940      940           
Impacted Files Coverage Δ Complexity Δ
.../io/seata/rm/datasource/sql/struct/ColumnMeta.java 98.31% <ø> (ø) 59.00 <0.00> (ø)
...rce/sql/struct/cache/PostgresqlTableMetaCache.java 76.13% <100.00%> (ø) 10.00 <0.00> (ø)

@yyjgit66
Copy link
Contributor Author

Modify data type compatible with PostgreSQL

1 similar comment
@yyjgit66
Copy link
Contributor Author

Modify data type compatible with PostgreSQL

Copy link
Contributor

@wangliang181230 wangliang181230 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@slievrly slievrly changed the title Modify data type compatible with PostgreSQL bugfix: fix get PostgreSQL tableMeta error when using sharding JDBC Jun 19, 2020
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@l81893521 l81893521 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@l81893521 l81893521 merged commit fa202a7 into apache:develop Jun 19, 2020
@slievrly slievrly added this to the 1.3.0 milestone Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first-time contributor first-time contributor module/rm-datasource rm-datasource module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

seata和sharding jdbc整合异常: Failed to fetch schema of trend_chart
6 participants