updating tests

This commit is contained in:
Zach Musgrave
2023-06-07 12:25:38 -07:00
parent 6688243ea5
commit 49e0923cdd

View File

@@ -74,7 +74,7 @@ export const tableTests = [
FROM information_schema.statistics
WHERE table_schema=:tableSchema AND table_name=:tableName AND index_name!="PRIMARY"
GROUP BY index_name;`,
p: { tableSchema: `${dbName}/main`, tableName: "test" },
p: { tableSchema: `${dbName}`, tableName: "test" },
res: [
{
TABLE_NAME: "test",
@@ -122,19 +122,19 @@ export const tableTests = [
},
{
q: `SELECT * FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE table_name=:tableName AND table_schema=:tableSchema AND referenced_table_schema IS NOT NULL`,
p: { tableName: "test_info", tableSchema: `${dbName}/main` },
p: { tableName: "test_info", tableSchema: `${dbName}` },
res: [
{
CONSTRAINT_CATALOG: "def",
CONSTRAINT_SCHEMA: `${dbName}/main`,
CONSTRAINT_SCHEMA: `${dbName}`,
CONSTRAINT_NAME: "s7utamh8",
TABLE_CATALOG: "def",
TABLE_SCHEMA: `${dbName}/main`,
TABLE_SCHEMA: `${dbName}`,
TABLE_NAME: "test_info",
COLUMN_NAME: "test_pk",
ORDINAL_POSITION: 1,
POSITION_IN_UNIQUE_CONSTRAINT: 1,
REFERENCED_TABLE_SCHEMA: `${dbName}/main`,
REFERENCED_TABLE_SCHEMA: `${dbName}`,
REFERENCED_TABLE_NAME: "test",
REFERENCED_COLUMN_NAME: "pk",
},