I’ve got a rails app that retrieve tif files from the filesystem,
creates multi-page pdfs and stores them in an image field in the
database. It works great, except for a couple of files. The files it
chokes on are anything really different from the others, they’re not
the largest, nor the smallest. Everytime I try to run the app on
these files, I get this error.
DBI::DatabaseError: Not enough SQL parameters: INSERT INTO invoices
([account], [invoice_date], [id], [pdf]) VALUES(‘BY0905001’, ‘20060912
I can see the EOF marker of the pdf file at the very end of the binary
data, so I know its sending the whole shebang.
I’ve tried using the DBD:ADO connection and the DBD:ODBC connection,
but both fail in the same way.
Any hints on where to start with this? I don’t know if it matters or
not, but on the error output there are a lot of single quote
characters. I’m assuming they’re automatically escaped.