mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-12 18:59:03 -06:00
updating tests
This commit is contained in:
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user