You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found while testing Drupal. All indications were that they were trying to submit a query that looked like CREATE TABLE {table_name} ... (which made no sense) until I pulled a packet capture - turns out that the actual query going over the wire (and failing) is:
CREATETABLE "drupal_install_test" (id intNOT NULLPRIMARY KEY)
Preceded by:
SET sql_mode ='ANSI,STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,ONLY_FULL_GROUP_BY'
which reports success.
As an aside: Should this be a feature request instead of a bug?
Reproduction Steps
SET sql_mode ='ANSI';
-- Query OK, 0 rows affectedCREATETABLE "drupal_install_test" (id intNOT NULLPRIMARY KEY);
-- ERROR 1105 (HY000): syntax error at position 35 near 'drupal_install_test'
Binary version
For vttestserver:mysql57 and vttestserver:mysql80, respectively:
$ vtcombo --version
Version: 10.0.0-SNAPSHOT (Git revision 415f3765a branch 'master') built on Wed Mar 31 08:35:37 UTC 2021 by vitess@7a1cb8a24287 using go1.15.6 linux/amd64
$ vtcombo --version
Version: 10.0.0-SNAPSHOT (Git revision 415f3765a branch 'master') built on Wed Mar 31 13:48:43 UTC 2021 by vitess@00c264007ba8 using go1.15.6 linux/amd64
Note that ANSI is a special mode that expands to the following individual sql_mode values: REAL_AS_FLOAT, PIPES_AS_CONCAT, ANSI_QUOTES, IGNORE_SPACE, and ONLY_FULL_GROUP_BY
Overview of the Issue
Found while testing Drupal. All indications were that they were trying to submit a query that looked like
CREATE TABLE {table_name} ...
(which made no sense) until I pulled a packet capture - turns out that the actual query going over the wire (and failing) is:Preceded by:
which reports success.
As an aside: Should this be a feature request instead of a bug?
Reproduction Steps
Binary version
For
vttestserver:mysql57
andvttestserver:mysql80
, respectively:Operating system and Environment details
In one of the
vttestserver
containers:On the host:
Log Fragments
Nothing from when these queries are executed
The text was updated successfully, but these errors were encountered: