Bug #22122 | Like query wildcards do not work with prepared statements. | ||
---|---|---|---|
Submitted: | 8 Sep 2006 15:45 | Modified: | 11 Sep 2006 13:36 |
Reporter: | emerson clarke | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0 | OS: | Windows (Windows) |
Assigned to: | CPU Architecture: | Any |
[8 Sep 2006 15:45]
emerson clarke
[8 Sep 2006 15:50]
emerson clarke
@test should read @param
[8 Sep 2006 18:22]
Sveta Smirnova
Thank you for the report. I can not repeat nor on Windows, nor on Linux using current BK sources: mysql> create table hashes(url varchar(200)); Query OK, 0 rows affected (0.09 sec) mysql> insert into hashes values('http://cnn.com/index.html';), ('http://ntv.ru/index.php';); Query OK, 2 rows affected (0.00 sec) Records: 2 Duplicates: 0 Warnings: 0 mysql> prepare stmt FROM "select * from hashes where url like ?"; Query OK, 0 rows affected (0.00 sec) Statement prepared mysql> set @param = 'http://cnn.com%';; Query OK, 0 rows affected (0.00 sec) mysql> execute stmt using @param; +---------------------------+ | url | +---------------------------+ | http://cnn.com/index.html | +---------------------------+ 1 row in set (0.00 sec) mysql>
[11 Sep 2006 13:36]
emerson clarke
I can't repeat it either this week.