--Dan's minstrel wrote this sql
select column1, column2
from sometable
where column1 = ?
Any guesses?
Perl's DBI (or perhaps Oracle's DBD) parses this sql properly. However, TOAD, TORA and Ruby's DBI do not. The problem, believe it or not, is the apostrophe when combined with a placeholder (although TORA seems to choke even with a hard coded value). It seems everything east of the apostrophe (inlcuding the apostrophe) is getting lumped together with the "select" clause.
I can't speak for TOAD, but the problem in Ruby's DBI lies in the simple lexer it uses to parse sql when placeholders are used. Shouldn't be too hard to fix, though.
Only five hours of work down the tubes thanks to this bug. No biggie. GAH!
Update: Michael Neumann has fixed this for the next release. Hooray!
Do all DBD's handle comments? (Score:1)
Re:Do all DBD's handle comments? (Score:2)
Re:Do all DBD's handle comments? (Score:1)
DBD::Pg knows how to handle comments w/ an "'" in the comments
there was a thread about rewriting DBD::Pg from scratch on the dbi list that discussed sql comments