Skip to content

Commit

Permalink
Standardise validation query formats
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Jan 13, 2023
1 parent 777745c commit f3dd7fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/DBI-pool.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ setMethod("onValidate", "DBIConnection", function(object) {
"SELECT 1",
"SELECT 1 FROM DUAL",
"SELECT 1 FROM INFORMATION_SCHEMA.SYSTEM_USERS",
"SELECT * FROM INFORMATION_SCHEMA.TABLES",
"SELECT 1 FROM INFORMATION_SCHEMA.TABLES",
"VALUES 1",
"SELECT 1 FROM SYSIBM.SYSDUMMY1",
"select count(*) from systables",
"select count(*) from SYS_TABLES",
"select count(*) from SYS.TABLES"
"SELECT 1 FROM systables",
"SELECT 1 FROM SYS_TABLES",
"SELECT 1 FROM SYS.TABLES"
)

## Iterates through the possible validation queries:
Expand Down

0 comments on commit f3dd7fe

Please sign in to comment.