Bug #116861 | prepare statement with underscore_charset report error | ||
---|---|---|---|
Submitted: | 4 Dec 2024 2:12 | Modified: | 6 Dec 2024 2:01 |
Reporter: | zkong kong | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Parser | Severity: | S3 (Non-critical) |
Version: | 9.1.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[4 Dec 2024 2:12]
zkong kong
[4 Dec 2024 10:39]
MySQL Verification Team
Hi Mr. kong, Thank you for your bug report. However, we can not repeat it ...... Here is the command that worked just fine for us : prepare stmt from "select * from t where c = _latin1 '?'"; Query OK, 0 rows affected (0.00 sec) Statement prepared Can't repeat.
[5 Dec 2024 1:52]
zkong kong
Hi: '?' is constant, not param holder. please verify again, thx!
[5 Dec 2024 10:36]
MySQL Verification Team
Hi Mr. kong, If '?' is a constant, then you are not using introducers properly.
[6 Dec 2024 2:01]
zkong kong
Hi: just want to prepare this sql: select * from t where c=_latin1'01'; let the '01' to be a var, The usage is normal ?
[6 Dec 2024 10:59]
MySQL Verification Team
Hi Mr. kong, No, that is not a normal way of using introducers. This is all explained in our Reference Manual.