Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2014

    Red face Unanswered: Wrong quote style with pdo_informix

    I am using PDO_Informix (1.3.0) with a Informix (11) database. However when I use the pdo::quote command the escape of a single quote is wrong (yes I know I should use prepare statements). Pdo::quote escapes a single quote with a backslash like this 'it\'s' while it should escape the single quote with an extra single quote like this 'it''s'. Can I tell the driver to use the proper quoting style?

  2. #2
    Join Date
    Sep 2011
    Pont l'Abbé, Brittany, France
    Provided Answers: 1

    something in my memory tells me that PDO with Informix has something special, but I would not garantee it.

    In anay case, I would strongly recommend you to check this webcast which is the first episode of a series of 4 webcasts dedicated to PHP on Informix.

    The author is Thomas Beebe, from Advanced Data Tools, a worldwide recognized PHP and Informix expert, and you probably will not have a better source on this matter.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts