Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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


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....


Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://673401]
[shmem]: well, previous to that << was always treated as the left-shift operator
[Eily]: or the here-doc operator
[Eily]: which is actually how it is parsed in this case
[shmem]: older versions of perl can't guess that "use of <<>> may be implemented someday" :D
Discipulus how much wise my brothers are? ;=)
[karlgoethebier]: thanks ;-
[karlgoethebier]: all for reading the manuals

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-07-21 09:09 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (320 votes). Check out past polls.