@@ -321,7 +321,7 @@ public void testTimestampWithoutTimezone() throws JSQLParserException {
321321 String statement = "CREATE TABLE abc.tabc (transaction_date TIMESTAMP WITHOUT TIME ZONE)" ;
322322 assertSqlCanBeParsedAndDeparsed (statement );
323323 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" ))),
325325 statement );
326326 }
327327
@@ -499,7 +499,7 @@ private String getLine(BufferedReader in) throws Exception {
499499 if (line != null ) {
500500 if ((line .length () != 0 )
501501 && ((line .length () < 2 ) || (line .length () >= 2 )
502- && !(line .charAt (0 ) == '/' && line .charAt (1 ) == '/' ))) {
502+ && !(line .charAt (0 ) == '/' && line .charAt (1 ) == '/' ))) {
503503 break ;
504504 }
505505 } else {
@@ -561,8 +561,8 @@ public void testCreateTableIssue113() throws JSQLParserException {
561561 assertDeparse (new CreateTable ().withTable (new Table ().withName ("foo" )).withColumnDefinitions (Arrays .asList (
562562 new ColumnDefinition ().withColumnName ("reason" ).withColDataType (
563563 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" ))),
566566 statement );
567567
568568 }
@@ -676,4 +676,9 @@ public void testCreateTableWithCommentIssue413_2() throws JSQLParserException {
676676 String statement = "CREATE TABLE a LIKE (b)" ;
677677 assertSqlCanBeParsedAndDeparsed (statement );
678678 }
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+ }
679684}
0 commit comments