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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b24dd933
Commit
b24dd933
authored
Oct 22, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handler.cc:
Typos in comments. sql/handler.cc: Typos in comments.
parent
746e6e53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sql/handler.cc
sql/handler.cc
+5
-5
No files found.
sql/handler.cc
View file @
b24dd933
...
...
@@ -1004,12 +1004,12 @@ next_insert_id(ulonglong nr,struct system_variables *variables)
The next row will be given the id
next_insert_id(next_insert_id)
The idea is th
e generated auto_increment values are predica
table and
The idea is th
at generated auto_increment values are predic
table and
independent of the column values in the table. This is needed to be
able to replicate into a table that alread has rows with a higher
able to replicate into a table that alread
y
has rows with a higher
auto-increment value than the one that is inserted.
After we have already generated an auto-increment number and the user
s
After we have already generated an auto-increment number and the user
inserts a column with a higher value than the last used one, we will
start counting from the inserted value.
...
...
@@ -1035,7 +1035,7 @@ void handler::update_auto_increment()
{
/* Clear flag for next row */
table
->
auto_increment_field_not_null
=
FALSE
;
/* Mark that we didn't generate
d
a new value **/
/* Mark that we didn't generate a new value **/
auto_increment_column_changed
=
0
;
/* Update next_insert_id if we have already generated a value */
...
...
@@ -1076,7 +1076,7 @@ void handler::update_auto_increment()
/*
We can't set next_insert_id if the auto-increment key is not the
first key part, as there is no gurantee that the first parts will be in
first key part, as there is no gu
a
rantee that the first parts will be in
sequence
*/
if
(
!
table
->
next_number_key_offset
)
...
...
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