Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ public void exitDefaultValue(boolean skipIfUnknownOptional) {
}

private String unquote(String stringLiteral) {
if (stringLiteral != null && stringLiteral.startsWith("'") && stringLiteral.endsWith("'")) {
if (stringLiteral != null
&& ((stringLiteral.startsWith("'") && stringLiteral.endsWith("'"))
|| (stringLiteral.startsWith("\"") && stringLiteral.endsWith("\"")))) {
return stringLiteral.substring(1, stringLiteral.length() - 1);
}
return stringLiteral;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ void testDdlWithDefaultStringValue() throws Exception {
+ " double_c DOUBLE DEFAULT ' 25',\n"
+ " double_un_c DOUBLE UNSIGNED DEFAULT ' 26',\n"
+ " double_un_z_c DOUBLE UNSIGNED ZEROFILL DEFAULT ' 27',\n"
+ " tiny_un_c TINYINT UNSIGNED DEFAULT ' 28 '"
+ " tiny_un_c TINYINT UNSIGNED DEFAULT \" 28 \""
+ " );");
}
actualRows.addAll(fetchRows(iterator, expected.length - 2));
Expand Down