in reply to sql2008 Filestream
my $statement ="insert into ... values ('$thisid','$now','$id','$userid',cast('$print' as ... "
Don't interpolate Postscript content ($print) into SQL statements, use placeholders instead (this is a good idea in general, not only for Postscript content).
Postscript code can in theory (depending on how it's generated) contain arbitrary characters, and even if it's 7-bit only, it can still contain single quotes...
As for the out-of-memory error with Apache, I don't know, but maybe it's indirectly caused by the other problem, so I would fix that first.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sql2008 Filestream
by ksublondie (Friar) on Mar 01, 2011 at 19:48 UTC | |
by Eliya (Vicar) on Mar 01, 2011 at 20:07 UTC | |
by ksublondie (Friar) on Mar 02, 2011 at 00:32 UTC | |
by Eliya (Vicar) on Mar 02, 2011 at 02:45 UTC | |
by ksublondie (Friar) on Mar 02, 2011 at 16:04 UTC | |
|