-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You have an error in your SQL syntax #439
Comments
Both these work for me from a MySQL Client prompt: DESCRIBE `report` '%'; SHOW COLUMNS FROM `report` LIKE '%'; Why doesn't it raise error 1064 while doing this via DBD::mysql? |
#!/bin/perl
use v5.36;
use DBI;
use Data::Dumper;
my $dbh = DBI->connect('DBI:mysql:database=test', 'root', '', {
mysql_auto_reconnect => 1,
RaiseError => 1,
AutoCommit => 1,
});
my $sth = $dbh->column_info(undef, undef, 'report', undef);
$sth->execute;
while (my $ref = $sth->fetchrow_hashref()) {
print Dumper($ref);
} Gives me this:
This is with MySQL 9.0.1 server and libraries. and with a table created with Does this only happen with 5.7 as server? with 8.4 libraries? with a specific table layout? with a specific SQL mode? |
I get the same issue even with the mysql client, I don't see documentation for |
I think moving go This is actually in the docs on https://dev.mysql.com/doc/refman/8.4/en/explain.html
|
Information that could be useful:
|
This is what I get with a MySQL 5.7 server in a container.
|
Note that this would work around a compatibility issue with TiDB: pingcap/tidb#46814 |
@johnjelinek could you provide any more details on this? |
Sorry, I haven't been able to return to this. I'm using a MySQL compatible equivalent like TiDB that demonstrates the same symptoms here. |
Ok. I think I know enough to proceed with this What MySQL compatible server are you using exactly? Maybe we can add it to CI/CD? |
It's called SingleStore |
DBD::mysql version
5.008
MySQL client version
8.4.2
Server version
5.7.32
Operating system version
Rocky Linux 8
What happened?
I think it'd be better to have
column_info
call something like this instead:Other information
No response
The text was updated successfully, but these errors were encountered: