Skip to content

Commit

Permalink
mysql-client-tests/node: Migrate to mysql2 v3
Browse files Browse the repository at this point in the history
  • Loading branch information
tbantle22 committed Apr 12, 2024
1 parent 76722c9 commit 314749a
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 2 deletions.
3 changes: 3 additions & 0 deletions integration-tests/mysql-client-tests/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const tests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand Down Expand Up @@ -44,6 +45,7 @@ const tests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{ q: "select * from test", res: [{ pk: 0, value: 0 }] },
Expand All @@ -63,6 +65,7 @@ const tests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{ q: "call dolt_commit('-a', '-m', 'my commit2')", res: [] },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const branchTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand All @@ -34,6 +35,7 @@ export const branchTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand Down Expand Up @@ -89,6 +91,7 @@ export const branchTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const databaseTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand All @@ -34,6 +35,7 @@ export const databaseTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const diffTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand Down Expand Up @@ -197,7 +198,8 @@ export const diffTests = [
to_name: "myview",
to_fragment: "CREATE VIEW `myview` AS SELECT * FROM test",
to_extra: { CreatedAt: 0 },
to_sql_mode: 'NO_ENGINE_SUBSTITUTION,ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES',
to_sql_mode:
"NO_ENGINE_SUBSTITUTION,ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES",
to_commit: "WORKING",
to_commit_date: "2023-03-09T07:56:29.035Z",
from_type: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const docsTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand All @@ -40,6 +41,7 @@ export const docsTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const tableTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand All @@ -23,6 +24,7 @@ export const tableTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand Down Expand Up @@ -94,6 +96,7 @@ export const tableTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand All @@ -105,6 +108,7 @@ export const tableTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand Down Expand Up @@ -155,6 +159,7 @@ export const tableTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},

Expand All @@ -172,6 +177,7 @@ export const tableTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand All @@ -188,6 +194,7 @@ export const tableTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand Down Expand Up @@ -224,6 +231,7 @@ export const tableTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const viewsTests = [
info: "",
serverStatus: 2,
warningStatus: 0,
changedRows: 0,
},
},
{
Expand All @@ -34,7 +35,8 @@ export const viewsTests = [
name: "myview",
fragment: "CREATE VIEW `myview` AS SELECT * FROM test",
extra: { CreatedAt: 0 },
sql_mode: 'NO_ENGINE_SUBSTITUTION,ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES',
sql_mode:
"NO_ENGINE_SUBSTITUTION,ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES",
},
],
},
Expand Down

0 comments on commit 314749a

Please sign in to comment.