Skip to content

Commit

Permalink
[fix](test) add def keyword to define local variable success (#21206)
Browse files Browse the repository at this point in the history
add def keyword to define local variable success
  • Loading branch information
xiaokang authored Jul 4, 2023
1 parent b5da3f7 commit 9477436
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ suite("test_json_load_and_function", "p0") {
// insert into invalid json rows with enable_insert_strict=true
// expect excepiton and no rows not changed
sql """ set enable_insert_strict = true """
success = true
def success = true
try {
sql """INSERT INTO ${testTable} VALUES(26, '')"""
} catch(Exception ex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ suite("test_json_unique_load_and_function", "p0") {
// insert into invalid json rows with enable_insert_strict=true
// expect excepiton and no rows not changed
sql """ set enable_insert_strict = true """
success = true
def success = true
try {
sql """INSERT INTO ${testTable} VALUES(26, '')"""
} catch(Exception ex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ suite("test_jsonb_load_and_function", "p0") {
// insert into invalid json rows with enable_insert_strict=true
// expect excepiton and no rows not changed
sql """ set enable_insert_strict = true """
success = true
def success = true
try {
sql """INSERT INTO ${testTable} VALUES(26, '')"""
} catch(Exception ex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ suite("test_jsonb_unique_load_and_function", "p0") {
// insert into invalid json rows with enable_insert_strict=true
// expect excepiton and no rows not changed
sql """ set enable_insert_strict = true """
success = true
def success = true
try {
sql """INSERT INTO ${testTable} VALUES(26, '')"""
} catch(Exception ex) {
Expand Down

0 comments on commit 9477436

Please sign in to comment.