in reply to Re: dbd odbc sql big file blues
in thread dbd odbc sql big file blues
Can you show us a small script that demonstrates the error?
Hint: you can use the x operator to efficiently create large strings:
my $str = '1' x 50; print $str;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: dbd odbc sql big file blues
by CaptainDaddy (Initiate) on Mar 19, 2013 at 14:51 UTC | |
Here's a reproduction of the error
The above code gives me the following output:
> perl varbinary_failure_demo.pl | [reply] [d/l] |
by mje (Curate) on Mar 19, 2013 at 16:55 UTC | |
I suggest it is a problem with your ODBC Driver as when I run my example above with your inserts and the Easysoft ODBC Driver I get:
I stopped it at 314572800 bytes as I was running out of memory. The output was:
| [reply] [d/l] [select] |
by CaptainDaddy (Initiate) on Mar 20, 2013 at 14:42 UTC | |
Thanks a bunch for helping me with this; So I'm using unixODBC, FreeTDS, and DBD::ODBC. As I understand it FreeTDS is the ODBC Driver, correct? Also are there any other differences between the packages we are using? | [reply] |
by Anonymous Monk on Mar 20, 2013 at 15:34 UTC | |
Thanks a bunch for helping me with this; So I'm using unixODBC, FreeTDS, and DBD::ODBC. As I understand it FreeTDS is the ODBC Driver, correct? Also are there any other differences between the packages we are using? | [reply] |
by CaptainDaddy (Initiate) on Mar 20, 2013 at 15:35 UTC | |
by CaptainDaddy (Initiate) on Mar 20, 2013 at 18:51 UTC | |
The below code works as desired, as you will notice I switched to DBD:Sybase,
> cat sybase_trial.pl | [reply] [d/l] |
by mje (Curate) on Mar 21, 2013 at 09:45 UTC | |
Glad your working now. You've totally changed your stack now as you are now using a different Perl module and you're not using the freeTDS ODBC driver any more. I tried the freeTDS ODBC driver and got the same problem you did. | [reply] |
by CaptainDaddy (Initiate) on Mar 22, 2013 at 15:22 UTC | |
by mje (Curate) on Mar 22, 2013 at 15:39 UTC | |