[unixODBC-support] Web OK, command-line.. not yet!
jgrenetier at hotmail.com
Wed Sep 10 17:32:10 BST 2014
The ODBCINI did it:
So this now works from both Web and Linux command-line over the same Perl program!
However strangely, from the command-line I can't use the '?' placeholder, can't use parameterized statements.
It produces a 'Segmentation fault' immediately as soon as on the $sth->prepare .
This is fine I can live with that, and since the statement returns only one record, I've got the opportunity to bypass the $sth prepare and execute altogether, going with the $dbh directly:
($this, $that, $other) = $dbh->selectrow_array(" SELECT * FROM .." )
Not sure which is faster of the 2 (parameterized '?' over direct $dbh) over batches of a few thousands records but this is not essential.
Many thanks all!
Date: Thu, 10 Jul 2014 10:58:10 -0400
From: matt.the.mech at gmail.com
To: unixodbc-support at mailman.unixodbc.org
Subject: Re: [unixODBC-support] Web OK, command-line.. not yet!
Don't remember the exact details, but something to do with where the brackets for each section are in the line or spacing of some sort...I'll have to dig through my archives to try and find what we ended up doing to fix that issue.
Lorenzo Milesi found that "odbcinst -i -s -f /etc/odbc.ini" helped get rid of a problem in odbc.ini. Might be a red herring, but worth a shot.
unixODBC-support mailing list
unixODBC-support at mailman.unixodbc.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the unixODBC-support