@@ -321,7 +321,7 @@ public void testTimestampWithoutTimezone() throws JSQLParserException {
321
321
String statement = "CREATE TABLE abc.tabc (transaction_date TIMESTAMP WITHOUT TIME ZONE)" ;
322
322
assertSqlCanBeParsedAndDeparsed (statement );
323
323
assertDeparse (new CreateTable ().withTable (new Table (Arrays .asList ("abc" , "tabc" ))).addColumnDefinitions (
324
- new ColumnDefinition ("transaction_date" , new ColDataType ("TIMESTAMP WITHOUT TIME ZONE" ))),
324
+ new ColumnDefinition ("transaction_date" , new ColDataType ("TIMESTAMP WITHOUT TIME ZONE" ))),
325
325
statement );
326
326
}
327
327
@@ -499,7 +499,7 @@ private String getLine(BufferedReader in) throws Exception {
499
499
if (line != null ) {
500
500
if ((line .length () != 0 )
501
501
&& ((line .length () < 2 ) || (line .length () >= 2 )
502
- && !(line .charAt (0 ) == '/' && line .charAt (1 ) == '/' ))) {
502
+ && !(line .charAt (0 ) == '/' && line .charAt (1 ) == '/' ))) {
503
503
break ;
504
504
}
505
505
} else {
@@ -561,8 +561,8 @@ public void testCreateTableIssue113() throws JSQLParserException {
561
561
assertDeparse (new CreateTable ().withTable (new Table ().withName ("foo" )).withColumnDefinitions (Arrays .asList (
562
562
new ColumnDefinition ().withColumnName ("reason" ).withColDataType (
563
563
new ColDataType ().withDataType ("character varying" )
564
- .addArgumentsStringList (Arrays .asList ("255" )))
565
- .addColumnSpecs ("DEFAULT 'Test' :: character varying" , "NOT NULL" ))),
564
+ .addArgumentsStringList (Arrays .asList ("255" )))
565
+ .addColumnSpecs ("DEFAULT 'Test' :: character varying" , "NOT NULL" ))),
566
566
statement );
567
567
568
568
}
@@ -676,4 +676,9 @@ public void testCreateTableWithCommentIssue413_2() throws JSQLParserException {
676
676
String statement = "CREATE TABLE a LIKE (b)" ;
677
677
assertSqlCanBeParsedAndDeparsed (statement );
678
678
}
679
+
680
+ @ Test
681
+ public void testCreateTableWithParameterDefaultFalseIssue1089 () throws JSQLParserException {
682
+ assertSqlCanBeParsedAndDeparsed ("create table ADDRESS_TYPE ( address_type CHAR(1) not null, at_name VARCHAR(250) not null, is_disabled BOOL not null default FALSE, constraint PK_ADDRESS_TYPE primary key (address_type) )" , true );
683
+ }
679
684
}
0 commit comments