Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
559584fd
Commit
559584fd
authored
Jul 22, 2019
by
Anel Husakovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo and example in comment/KB for `setval()`
parent
ef44ec4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
sql/item_func.cc
sql/item_func.cc
+3
-3
sql/sql_sequence.cc
sql/sql_sequence.cc
+1
-1
No files found.
sql/item_func.cc
View file @
559584fd
...
...
@@ -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
()
...
...
sql/sql_sequence.cc
View file @
559584fd
...
...
@@ -176,7 +176,7 @@ void sequence_definition::store_fields(TABLE *table)
/*
Check the sequence fields through seq_fields when creat
e
ing a sequence.
Check the sequence fields through seq_fields when creating a sequence.
RETURN VALUES
false Success
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment