Created
September 6, 2013 09:14
-
-
Save cebe/6461443 to your computer and use it in GitHub Desktop.
CUBRID PDO quote unexpected result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected:
Result: