DB sqlite -> escapesimple -> PATCH

From: Date: Wed, 10 Mar 2004 21:56:01 +0000
Subject: DB sqlite -> escapesimple -> PATCH
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-26266@lists.php.net to get a copy of this message
I had an odd value to insert into an sqlite db via PEAR DB. It was a NUL character (ascii 0). The current escaping resulted in an error from the DB. Here is a patch to add the escapesimple() function to the SQLite DB backend. This uses the sqlite_escape_string() function (similar to the mysql API). It seems to be the right way to do things since sqlite has this function. Matt

« previous php.pear.dev (#26266) next »