1--TEST-- 2Bug #44643 (bound parameters ignore explicit type definitions) 3--EXTENSIONS-- 4pdo_odbc 5--SKIPIF-- 6<?php 7require 'ext/pdo/tests/pdo_test.inc'; 8PDOTest::skip(); 9?> 10--FILE-- 11<?php 12require 'ext/pdo/tests/pdo_test.inc'; 13$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt'); 14$sql = "SELECT * FROM (SELECT 'test' = :id1) a WHERE a.test = :id2"; 15$stmt = $db->prepare($sql); 16$id1 = 1; 17$stmt->bindParam(':id1', $id1, PDO::PARAM_INT); 18$id2 = 1; 19$stmt->bindParam(':id2', $id2, PDO::PARAM_INT); 20var_dump($stmt->execute()); 21?> 22--EXPECT-- 23bool(true) 24