Bug #23842 Unsigned check on "ON DUPLICATE KEY" query
| Submitted: | 1 Nov 2006 15:33 | Modified: | 2 Nov 2006 3:52 |
|---|---|---|---|
| Reporter: | winzou w | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 5.0.27-community-nt | OS: | Windows (Windows XP) |
| Assigned to: | CPU Architecture: | Any |
[1 Nov 2006 15:33]
winzou w
[1 Nov 2006 17:20]
Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, 5.0.27 and inform about the results. In case of the same problem, please, send the results of: SHOW VARIABLES LIKE 'sql_%'\G
[1 Nov 2006 18:33]
winzou w
Sorry I've just tried with MySQL 5.0.27-community-nt, but it's the same problem.
Here the result of your request :
mysql> SHOW VARIABLES LIKE 'sql_%'\G
*************************** 1. row ***************************
Variable_name: sql_big_selects
Value: ON
*************************** 2. row ***************************
Variable_name: sql_mode
Value: STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
*************************** 3. row ***************************
Variable_name: sql_notes
Value: ON
*************************** 4. row ***************************
Variable_name: sql_warnings
Value: OFF
4 rows in set (0.00 sec)
Thank you
[2 Nov 2006 3:52]
Hartmut Holzgraefe
the order of operations performed on the SQL level is: #1 check field values against field types #2 perform insert (using handler interface) #3 if insert failed with duplicate key error perform ON DUPLICATE KEY part there is no reason to go into steps #2 and #3 if #1 already failed
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.