Skip to content

Instantly share code, notes, and snippets.

@cebe
Created September 6, 2013 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cebe/6461443 to your computer and use it in GitHub Desktop.
Save cebe/6461443 to your computer and use it in GitHub Desktop.
CUBRID PDO quote unexpected result
<?php
$pdo = new PDO('cubrid:dbname=demodb;host=localhost;port=33000', 'dba', '');
$test = 'mystring';
echo $pdo->quote($test) . "\n";
$test = "my'string";
echo $pdo->quote($test) . "\n";
@cebe
Copy link
Author

cebe commented Sep 6, 2013

Expected:

'mystring'
'my''string'

Result:

mystring
my''string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment