MDB2 and ampersand in prepared stmnt

From: Date: Thu, 31 Aug 2006 20:56:17 +0000
Subject: MDB2 and ampersand in prepared stmnt
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25030@lists.php.net to get a copy of this message
MDB2 2.2.0 MDB2_Driver_pgsql 1.2.0 I'm seeing my text being decapitated after an ampersand using $mdb2->prepare(). I haven't seen this documented anywhere and google only shows me this 2-year-old bug that looks related: http://pear.php.net/bugs/bug.php?id=31&edit=2 There's a comment from the Lukas: "this looks like a more generic problem in how prepare is emulated in DB_Common. Generally the user should have to escape the prepare placeholders and prepare would have to check for the escape char." Can someone translate this? How do i escape the placeholder, and is this a suggestion to patch the source myself? I can do my own replace on ampersands (and then replace them back when i pull it from the db) but that seems like a pretty ugly hack. Any suggestions? b

« previous php.pear.general (#25030) next »