Commit 559584fd authored by Anel Husakovic's avatar Anel Husakovic

Fix typo and example in comment/KB for `setval()`

parent ef44ec4a
...@@ -6906,9 +6906,9 @@ longlong Item_func_lastval::val_int() ...@@ -6906,9 +6906,9 @@ longlong Item_func_lastval::val_int()
/* /*
Sets next value to be returned from sequences Sets next value to be returned from sequences
SELECT setval('foo', 42, 0); Next nextval will return 43 SELECT setval(foo, 42, 0); Next nextval will return 43
SELECT setval('foo', 42, 0, true); Same as above SELECT setval(foo, 42, 0, true); Same as above
SELECT setval('foo', 42, 0, false); Next nextval will return 42 SELECT setval(foo, 42, 0, false); Next nextval will return 42
*/ */
longlong Item_func_setval::val_int() longlong Item_func_setval::val_int()
......
...@@ -176,7 +176,7 @@ void sequence_definition::store_fields(TABLE *table) ...@@ -176,7 +176,7 @@ void sequence_definition::store_fields(TABLE *table)
/* /*
Check the sequence fields through seq_fields when createing a sequence. Check the sequence fields through seq_fields when creating a sequence.
RETURN VALUES RETURN VALUES
false Success false Success
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment