diff options
author | Anel Husakovic <anel@mariadb.org> | 2019-07-22 02:12:46 -0700 |
---|---|---|
committer | Anel Husakovic <anel@mariadb.org> | 2019-07-22 02:14:09 -0700 |
commit | 559584fd9a5e9785e58940f11df02160eab04dad (patch) | |
tree | b986d3f57f1e50da479cffd6b17a7934576e3541 | |
parent | ef44ec4afaa70521789dbb7886a0a21da64a569e (diff) | |
download | mariadb-git-559584fd9a5e9785e58940f11df02160eab04dad.tar.gz |
Fix typo and example in comment/KB for `setval()`
-rw-r--r-- | sql/item_func.cc | 6 | ||||
-rw-r--r-- | sql/sql_sequence.cc | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index a030d2f8681..f1d91e445da 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -6906,9 +6906,9 @@ longlong Item_func_lastval::val_int() /* Sets next value to be returned from sequences - SELECT setval('foo', 42, 0); Next nextval will return 43 - 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); Next nextval will return 43 + SELECT setval(foo, 42, 0, true); Same as above + SELECT setval(foo, 42, 0, false); Next nextval will return 42 */ longlong Item_func_setval::val_int() diff --git a/sql/sql_sequence.cc b/sql/sql_sequence.cc index d672e7368d3..a7b5def9193 100644 --- a/sql/sql_sequence.cc +++ b/sql/sql_sequence.cc @@ -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 false Success |