Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
We don't bite newbies here... much
 
PerlMonks  

Re^3: Limitations of DBI (or) DBD::ODBC ?

by Happy-the-monk (Canon)
on Oct 25, 2005 at 03:37 UTC ( [id://502644]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^2: Limitations of DBI (or) DBD::ODBC ?
in thread Limitations of DBI (or) DBD::ODBC ?

$sql = qq~

try changing that to a single q like
$sql = q~

I doubt that it will help much, but try it anyway. You don't need to worry about perl misunderstanding @-strings as arrays inside your sql.

As it won't interpolate the variables you wanted it to interpolate anyomore, also change all the $settings[...] to a simple ? in all occurrences and add the Array to the excute statement like this:
$sth2->execute( @settings );

Cheers, Sören

Replies are listed 'Best First'.
Re^4: Limitations of DBI (or) DBD::ODBC ?
by s_m_b (Acolyte) on Nov 04, 2005 at 04:38 UTC
    Thanks for the idea, but having rewritten the statements into portions, the error vanishes (being replaced by DATETIME problems, but that's another story!), so looks like DBD:ODBC has some significant issues.

    BTW: I'd tried the ? placeholders, but SQL server simply doesn't do them! Or perhaps the SQL interpreter in DBD:ODBC doesn't understand them....

    adding finish() between each call has helped too, so thanks guyus for your suggestions (helpful or otherwise ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://502644]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.