in reply to dbd odbc sql big file blues
Sorry for the misspellings above, that was me. Allow me to attempt to illuminate.
I can connect fine, and I use the
$cmd=$dbh->prepare(....); $cmd->execute(); $cmd->finish;
throughout. My file column is
varbinary(max), and to insert I do a
$cmd=$dbh->prepare("insert into filestable (filescolumn) values(?)"); $cmd->bind_param(1,$binfilecontents, DBI:SQLVARBINARY); $cmd->execute; $cmd->finish;
This works great for most small files, gives me 0x for some, and for others (about 350kB) I get the hy090 error. I read somewhere that this indicates a negative buffer length somewhere, but am having no luck figuring out how to fix it. Please elighten me so I may progress in my training. Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: dbd odbc sql big file blues
by GrandFather (Saint) on Mar 19, 2013 at 02:52 UTC | |
by CaptainDaddy (Initiate) on Mar 19, 2013 at 14:51 UTC | |
by mje (Curate) on Mar 19, 2013 at 16:55 UTC | |
by CaptainDaddy (Initiate) on Mar 20, 2013 at 14:42 UTC | |
by Anonymous Monk on Mar 20, 2013 at 15:34 UTC | |
by CaptainDaddy (Initiate) on Mar 20, 2013 at 15:35 UTC | |
by CaptainDaddy (Initiate) on Mar 20, 2013 at 18:51 UTC | |
by mje (Curate) on Mar 21, 2013 at 09:45 UTC | |
by CaptainDaddy (Initiate) on Mar 22, 2013 at 15:22 UTC | |
| |
|
Re^2: dbd odbc sql big file blues
by mje (Curate) on Mar 19, 2013 at 09:13 UTC | |
by CaptainDaddy (Initiate) on Mar 20, 2013 at 18:37 UTC | |
by CaptainDaddy (Initiate) on Mar 21, 2013 at 13:35 UTC | |
by CaptainDaddy (Initiate) on May 10, 2013 at 19:23 UTC |