Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[CONJ-412] database DECIMAL_DIGITS must have int datatype part 2
  • Loading branch information
rusher committed Jan 31, 2017
1 parent 585adeb commit eaea777
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -644,7 +644,7 @@ public ResultSet getColumns(String catalog, String schemaPattern, String tableNa
+ " CONVERT (CASE DATA_TYPE"
+ " WHEN 'year' THEN " + (((dataType & MariaSelectResultSet.YEAR_IS_DATE_TYPE) == 0) ? "0":"NUMERIC_SCALE")
+ " WHEN 'tinyint' THEN " + (((dataType & MariaSelectResultSet.TINYINT1_IS_BIT) > 0) ? "0":"NUMERIC_SCALE")
+ " ELSE NUMERIC_SCALE END, INTEGER) DECIMAL_DIGITS,"
+ " ELSE NUMERIC_SCALE END, UNSIGNED INTEGER) DECIMAL_DIGITS,"

+ " 10 NUM_PREC_RADIX, IF(IS_NULLABLE = 'yes',1,0) NULLABLE,COLUMN_COMMENT REMARKS,"
+ " COLUMN_DEFAULT COLUMN_DEF, 0 SQL_DATA_TYPE, 0 SQL_DATETIME_SUB, "
Expand Down

0 comments on commit eaea777

Please sign in to comment.