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
1e84e14c
Commit
1e84e14c
authored
Jun 03, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/usr/local/bk/mysql-5.0
into mysql.com:/home/pem/work/mysql-5.0
parents
668bfe22
f9fa47f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
sql/item.h
sql/item.h
+5
-3
sql/sql_yacc.yy
sql/sql_yacc.yy
+3
-3
No files found.
sql/item.h
View file @
1e84e14c
...
...
@@ -585,10 +585,12 @@ class Item_splocal : public Item
}
/* For error printing */
inline
void
my_name
(
char
**
strp
,
uint
*
lengthp
)
inline
LEX_STRING
*
my_name
(
LEX_STRING
*
get_name
)
{
*
strp
=
m_name
.
str
;
*
lengthp
=
m_name
.
length
;
if
(
!
get_name
)
return
&
m_name
;
(
*
get_name
)
=
m_name
;
return
get_name
;
}
bool
is_splocal
()
{
return
1
;
}
/* Needed for error checking */
...
...
sql/sql_yacc.yy
View file @
1e84e14c
...
...
@@ -4346,11 +4346,11 @@ simple_expr:
{
if ($3->is_splocal())
{
LEX_STRING name;
LEX_STRING
*
name;
Item_splocal *il= static_cast<Item_splocal *>($3);
il->my_name(&name.str, &name.length
);
my_error(ER_WRONG_COLUMN_NAME, MYF(0), name
.
str);
name= il->my_name(NULL
);
my_error(ER_WRONG_COLUMN_NAME, MYF(0), name
->
str);
YYABORT;
}
$$= new Item_default_value($3);
...
...
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