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
3d26fc50
Commit
3d26fc50
authored
Sep 10, 2001
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed IDENTITY crisis
parent
a65f2448
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
mysql-test/r/identity.result
mysql-test/r/identity.result
+4
-0
mysql-test/t/identity.test
mysql-test/t/identity.test
+2
-0
sql/sql_lex.cc
sql/sql_lex.cc
+13
-3
No files found.
mysql-test/r/identity.result
0 → 100644
View file @
3d26fc50
last_insert_id(345)
345
@@IDENTITY last_insert_id()
345 345
mysql-test/t/identity.test
0 → 100644
View file @
3d26fc50
select
last_insert_id
(
345
);
select
@@
IDENTITY
,
last_insert_id
();
sql/sql_lex.cc
View file @
3d26fc50
...
...
@@ -793,9 +793,19 @@ int yylex(void *arg)
}
break
;
case
STATE_USER_END
:
// end '@' of user@hostname
if
(
state_map
[
yyPeek
()]
!=
STATE_STRING
&&
state_map
[
yyPeek
()]
!=
STATE_USER_VARIABLE_DELIMITER
)
lex
->
next_state
=
STATE_HOSTNAME
;
// Mark for next loop
switch
(
state_map
[
yyPeek
()])
{
case
STATE_STRING
:
case
STATE_USER_VARIABLE_DELIMITER
:
break
;
case
STATE_USER_END
:
lex
->
next_state
=
STATE_USER_END
;
yySkip
();
break
;
default:
lex
->
next_state
=
STATE_HOSTNAME
;
break
;
}
yylval
->
lex_str
.
str
=
(
char
*
)
lex
->
ptr
;
yylval
->
lex_str
.
length
=
1
;
return
((
int
)
'@'
);
...
...
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