Skip Menu |

This queue is for tickets about the SQL-Statement CPAN distribution.

Report information
The Basics
Id: 52440
Status: rejected
Priority: 0/
Queue: SQL-Statement

Owner: Nobody in particular
Requestors: david.warring [...]

Bug Information
Severity: (no value)
Broken in: 1.23
Fixed in: (no value)

Subject: 'select 1 from some_table' Not parsing (impacting DBD::AnyData)
Download (untitled) / with headers
text/plain 677b
The following program: use common::sense; use SQL::Statement; my $sql1 = "SELECT 1+0 FROM some_table"; my $sql2 = "SELECT 1 FROM some_table"; my $parser = SQL::Parser->new(); $parser->{RaiseError}=1; $parser->{PrintError}=0; for ($sql1, $sql2) { warn "trying: $_"; my $stmt = SQL::Statement->new($_,$parser); } produces: trying: SELECT 1+0 FROM some_table at line 10. trying: SELECT 1 FROM some_table at line 10. Bad table or column name: '1' starts with non-alphabetic character! This appears to be causing DBD::AnyData to fail. See for more details.
Duplicated of RT#52420 (Merged into RT #16931).

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to