Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: SQL::Statement confusing literals and identifiers

by roboticus (Chancellor)
on Mar 11, 2008 at 03:01 UTC ( #673401=note: print w/ replies, xml ) Need Help??


in reply to SQL::Statement confusing literals and identifiers

ikegami:

Update: Nevermind ... I just tried it and it doesn't like those either.

Try using square brackets or single quotes:

SELECT id, gid, [foo bar]

I know some SQL servers don't care for double quotes (e.g., MS SQL server), so perhaps SQL::Statement doesn't like 'em either....

...roboticus


Comment on Re: SQL::Statement confusing literals and identifiers
Download Code
Re^2: SQL::Statement confusing literals and identifiers
by ikegami (Pope) on Mar 11, 2008 at 04:39 UTC
    The error occurs on the execute line after prepare successfully parsed the statement.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://673401]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2015-07-04 02:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls