mirror of
https://github.com/dolthub/dolt.git
synced 2025-12-16 19:36:23 -06:00
Fix tests, add CODEOWNERS
This commit is contained in:
23
CODEOWNERS
Normal file
23
CODEOWNERS
Normal file
@@ -0,0 +1,23 @@
|
||||
# Lines starting with '#' are comments.
|
||||
|
||||
# Each line is a file pattern followed by one or more owners.
|
||||
|
||||
# These owners will be the default owners for everything in the repo.
|
||||
|
||||
# * @defunkt
|
||||
|
||||
# Order is important. The last matching pattern has the most precedence.
|
||||
|
||||
# So if a pull request only touches javascript files, only these owners
|
||||
|
||||
# will be requested to review.
|
||||
|
||||
# *.js @octocat @github/js
|
||||
|
||||
# You can also use email addresses if you prefer.
|
||||
|
||||
# docs/* docs@example.com
|
||||
|
||||
# Begin dolt repository owners
|
||||
|
||||
integration-tests/mysql-client-tests/node/* @tbantle22
|
||||
@@ -1,11 +1,11 @@
|
||||
import { getArgs } from "../helpers.js";
|
||||
|
||||
const args = getArgs();
|
||||
const { dbName } = getArgs();
|
||||
|
||||
export const databaseTests = [
|
||||
{
|
||||
q: `USE ::dbName`,
|
||||
p: { dbName: `${args.dbName}/main` },
|
||||
p: { dbName: `${dbName}/main` },
|
||||
res: {
|
||||
fieldCount: 0,
|
||||
affectedRows: 0,
|
||||
@@ -20,8 +20,8 @@ export const databaseTests = [
|
||||
res: [
|
||||
{ Database: "information_schema" },
|
||||
{ Database: "mysql" },
|
||||
{ Database: "mysql_client" },
|
||||
{ Database: "mysql_client/main" },
|
||||
{ Database: `${dbName}` },
|
||||
{ Database: `${dbName}/main` },
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -41,8 +41,8 @@ export const databaseTests = [
|
||||
res: [
|
||||
{ Database: "information_schema" },
|
||||
{ Database: "mysql" },
|
||||
{ Database: "mysql_client" },
|
||||
{ Database: "mysql_client/main" },
|
||||
{ Database: `${dbName}` },
|
||||
{ Database: `${dbName}/main` },
|
||||
{ Database: "new_db" },
|
||||
],
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { getArgs } from "../helpers.js";
|
||||
|
||||
const args = getArgs();
|
||||
const { dbName } = getArgs();
|
||||
|
||||
export const tableTests = [
|
||||
{
|
||||
@@ -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: `${args.dbName}/main`, tableName: "test" },
|
||||
p: { tableSchema: `${dbName}/main`, tableName: "test" },
|
||||
res: [
|
||||
{
|
||||
TABLE_NAME: "test",
|
||||
@@ -116,25 +116,25 @@ export const tableTests = [
|
||||
q: `SHOW FULL TABLES AS OF :refName WHERE table_type = 'BASE TABLE'`,
|
||||
p: { refName: "main" },
|
||||
res: [
|
||||
{ "Tables_in_mysql_client/main": "test", Table_type: "BASE TABLE" },
|
||||
{ "Tables_in_mysql_client/main": "test_info", Table_type: "BASE TABLE" },
|
||||
{ [`Tables_in_${dbName}/main`]: "test", Table_type: "BASE TABLE" },
|
||||
{ [`Tables_in_${dbName}/main`]: "test_info", Table_type: "BASE TABLE" },
|
||||
],
|
||||
},
|
||||
{
|
||||
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: `${args.dbName}/main` },
|
||||
p: { tableName: "test_info", tableSchema: `${dbName}/main` },
|
||||
res: [
|
||||
{
|
||||
CONSTRAINT_CATALOG: "def",
|
||||
CONSTRAINT_SCHEMA: "mysql_client/main",
|
||||
CONSTRAINT_SCHEMA: `${dbName}/main`,
|
||||
CONSTRAINT_NAME: "s7utamh8",
|
||||
TABLE_CATALOG: "def",
|
||||
TABLE_SCHEMA: "mysql_client/main",
|
||||
TABLE_SCHEMA: `${dbName}/main`,
|
||||
TABLE_NAME: "test_info",
|
||||
COLUMN_NAME: "test_pk",
|
||||
ORDINAL_POSITION: 1,
|
||||
POSITION_IN_UNIQUE_CONSTRAINT: 1,
|
||||
REFERENCED_TABLE_SCHEMA: "mysql_client/main",
|
||||
REFERENCED_TABLE_SCHEMA: `${dbName}/main`,
|
||||
REFERENCED_TABLE_NAME: "test",
|
||||
REFERENCED_COLUMN_NAME: "pk",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user