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

    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
    Location
    Pont l'Abbé, Brittany, France
    Posts
    381
    Provided Answers: 1
    Hi,

    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.

    https://www.youtube.com/watch?v=-x8oLB5sTVA

    Eric

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
  •