-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Conversation
@@ -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")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getObject?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
与测试用例中的代码冲突了,还是改成getObject吧。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改成getObject
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI failed. Please check on https://travis-ci.com/github/seata/seata/builds/172154842
Codecov Report
@@ 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
|
Modify data type compatible with PostgreSQL |
1 similar comment
Modify data type compatible with PostgreSQL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ⅰ. 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