You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"UUID() returns a value that conforms to UUID version 1 as described in RFC 4122. The value is a 128-bit number represented as a utf8 string of five hexadecimal numbers in aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee format:"
The text was updated successfully, but these errors were encountered:
elig0n
changed the title
PROCEDURE shopping_cart_add_product() bad item_id value from UUID()
PROCEDURE shopping_cart_add_product() sends incorrect item_id value type with UUID()
May 12, 2019
The UUID() function in MySQL 5.7.X uses hex characters as well
The only solution I have found is to modify the PROCEDURE to either pass a '0' as item_id or not pass it all (as the next ID will be given to it automatically because it's an autoincrement'ed field).
Definition of
item_id
is INT as seen here:calling procedure
shopping_cart_add_product()
with adequate results inMistake is in INSERT-ing
item_id
asUUID()
which is NOT an INT type.line #1003:
From: https://dev.mysql.com/doc/refman/8.0/en/miscellaneous-functions.html#function_uuid
Observed on MariaDB 10.3.14
The text was updated successfully, but these errors were encountered: