Skip to content

Commit

Permalink
Update basic_tests.robot
Browse files Browse the repository at this point in the history
extra syntax alternative for postgres, pymsql
  • Loading branch information
carnegiemedal authored and bhirsz committed Nov 19, 2023
1 parent b883582 commit 1174c7e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/tests/common_tests/basic_tests.robot
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ SQL Statement Ending Without Semicolon Works

SQL Statement With Parameters Works
@{params}= Create List 2
TRY
${output}= Query SELECT * FROM person WHERE id < ? parameters=${params}
EXCEPT

IF "${DB_MODULE}" in ["oracledb"]
${output}= Query SELECT * FROM person WHERE id < :id parameters=${params}
ELSE IF "${DB_MODULE}" in ["sqlite3", "pyodbc"]
${output}= Query SELECT * FROM person WHERE id < ? parameters=${params}
ELSE
${output}= Query SELECT * FROM person WHERE id < %s parameters=${params}
END

Length Should Be ${output} 1

Create Person Table
Expand Down

0 comments on commit 1174c7e

Please sign in to comment.