Skip to content

Commit

Permalink
2.0 default value has \"\"
Browse files Browse the repository at this point in the history
  • Loading branch information
w41ter committed Sep 9, 2024
1 parent 3cc8f5c commit 744c47e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ suite("test_add_agg_column") {
// }
sql """
ALTER TABLE ${tableName}
ADD COLUMN `first` INT KEY DEFAULT 0 FIRST
ADD COLUMN `first` INT KEY DEFAULT "0" FIRST
"""
sql "sync"

Expand Down Expand Up @@ -199,7 +199,7 @@ suite("test_add_agg_column") {
// }
sql """
ALTER TABLE ${tableName}
ADD COLUMN `last` INT KEY DEFAULT 0 AFTER `id`
ADD COLUMN `last` INT KEY DEFAULT "0" AFTER `id`
"""
sql "sync"

Expand Down Expand Up @@ -231,7 +231,7 @@ suite("test_add_agg_column") {
// }
sql """
ALTER TABLE ${tableName}
ADD COLUMN `first_value` INT SUM DEFAULT 0 AFTER `last`
ADD COLUMN `first_value` INT SUM DEFAULT "0" AFTER `last`
"""
sql "sync"

Expand Down Expand Up @@ -263,7 +263,7 @@ suite("test_add_agg_column") {
// }
sql """
ALTER TABLE ${tableName}
ADD COLUMN `last_value` INT SUM DEFAULT 0 AFTER `value`
ADD COLUMN `last_value` INT SUM DEFAULT "0" AFTER `value`
"""
sql "sync"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ suite("test_add_column") {
// }
sql """
ALTER TABLE ${tableName}
ADD COLUMN `first` INT KEY DEFAULT 0 FIRST
ADD COLUMN `first` INT KEY DEFAULT "0" FIRST
"""
sql "sync"

Expand Down Expand Up @@ -236,7 +236,7 @@ suite("test_add_column") {
// }
sql """
ALTER TABLE ${tableName}
ADD COLUMN `last` INT KEY DEFAULT 0 AFTER `id`
ADD COLUMN `last` INT KEY DEFAULT "0" AFTER `id`
"""
sql "sync"

Expand Down Expand Up @@ -268,7 +268,7 @@ suite("test_add_column") {
// }
sql """
ALTER TABLE ${tableName}
ADD COLUMN `first_value` INT DEFAULT 0 AFTER `last`
ADD COLUMN `first_value` INT DEFAULT "0" AFTER `last`
"""
sql "sync"

Expand Down Expand Up @@ -300,7 +300,7 @@ suite("test_add_column") {
// }
sql """
ALTER TABLE ${tableName}
ADD COLUMN `last_value` INT DEFAULT 0 AFTER `value`
ADD COLUMN `last_value` INT DEFAULT "0" AFTER `value`
"""
sql "sync"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ suite("test_add_many_column") {
// }
sql """
ALTER TABLE ${tableName}
ADD COLUMN (`last_key` INT KEY DEFAULT 0, `last_value` INT DEFAULT 0)
ADD COLUMN (`last_key` INT KEY DEFAULT "0", `last_value` INT DEFAULT "0")
"""
sql "sync"

Expand Down

0 comments on commit 744c47e

Please sign in to comment.