Repository: ignite
Updated Branches:
  refs/heads/master 54fb41517 -> defc75eca


IGNITE-3937 implemented support for unsigned types in MySQL. Minor fix.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/9666dc49
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/9666dc49
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/9666dc49

Branch: refs/heads/master
Commit: 9666dc49d704c32a4b0b4b7920af62b78af69298
Parents: 63888bd
Author: Alexey Kuznetsov <akuznet...@apache.org>
Authored: Fri Sep 23 10:18:15 2016 +0700
Committer: Alexey Kuznetsov <akuznet...@apache.org>
Committed: Fri Sep 23 10:18:15 2016 +0700

----------------------------------------------------------------------
 .../apache/ignite/schema/parser/dialect/JdbcMetadataDialect.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/9666dc49/modules/schema-import-db/src/main/java/org/apache/ignite/schema/parser/dialect/JdbcMetadataDialect.java
----------------------------------------------------------------------
diff --git 
a/modules/schema-import-db/src/main/java/org/apache/ignite/schema/parser/dialect/JdbcMetadataDialect.java
 
b/modules/schema-import-db/src/main/java/org/apache/ignite/schema/parser/dialect/JdbcMetadataDialect.java
index f6c27f2..07361ba 100644
--- 
a/modules/schema-import-db/src/main/java/org/apache/ignite/schema/parser/dialect/JdbcMetadataDialect.java
+++ 
b/modules/schema-import-db/src/main/java/org/apache/ignite/schema/parser/dialect/JdbcMetadataDialect.java
@@ -118,6 +118,8 @@ public class JdbcMetadataDialect extends 
DatabaseMetadataDialect {
 
         Set<String> sys = systemSchemas();
 
+        Collection<String> unsignedTypes = unsignedTypes(dbMeta);
+
         if (schemas.isEmpty())
             schemas.add(null);
 
@@ -147,8 +149,6 @@ public class JdbcMetadataDialect extends 
DatabaseMetadataDialect {
 
                     Collection<DbColumn> cols = new ArrayList<>();
 
-                    Collection<String> unsignedTypes = unsignedTypes(dbMeta);
-
                     try (ResultSet colsRs = dbMeta.getColumns(tblCatalog, 
tblSchema, tblName, null)) {
                         while (colsRs.next()) {
                             String colName = colsRs.getString(COL_NAME_IDX);

Reply via email to