Ok, through no fault of my own, I've got to work with an Access database. The user who created the database created columns with names like "active?" and "is deleted?".
Normally this'd mean I'd have SQL like
select [active?], [is deleted?] from FOO;
My problem is that as soon as perl DBI (active perl in this case) sees those "?"s, it thinks that there is a bind and it's complaining with
DBD::ODBC::st execute failed: [Microsoft][ODBC MIcrosoft Access Driver
+]COUNT field incorrect (SQL-07002) at prog.pl
How can I disable binding or quote these columns in such a way as to not trigger binding?
--
I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.