1--TEST-- 2PDO_DBLIB: national character set values are quoted correctly in queries 3--SKIPIF-- 4<?php 5if (!extension_loaded('pdo_dblib')) die('skip not loaded'); 6require __DIR__ . '/config.inc'; 7?> 8--FILE-- 9<?php 10require __DIR__ . '/config.inc'; 11 12$stmt = $db->prepare('SELECT :value'); 13$stmt->bindValue(':value', 'foo', PDO::PARAM_STR | PDO::PARAM_STR_NATL); 14$stmt->execute(); 15 16var_dump($stmt->debugDumpParams()); 17?> 18--EXPECT-- 19SQL: [13] SELECT :value 20Sent SQL: [13] SELECT N'foo' 21Params: 1 22Key: Name: [6] :value 23paramno=-1 24name=[6] ":value" 25is_param=1 26param_type=1073741826 27NULL 28