Skip to content

Commit bce0255

Browse files
committed
fix: create table if not exists.
1 parent b2601d9 commit bce0255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/code/advancedsql/query/Create.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public Create ifNotExists() {
328328

329329
@Override
330330
public java.lang.String toQuery() {
331-
StringBuilder query = new StringBuilder("CREATE TABLE " + (ifNotExists ? "IF NOT EXISTS" : "") + this.table + " ( ");
331+
StringBuilder query = new StringBuilder("CREATE TABLE " + (ifNotExists ? "IF NOT EXISTS " : "") + this.table + " ( ");
332332

333333
List<IColumn> columns = this.action.getColumns();
334334

0 commit comments

Comments
 (0)