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