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
e9e9ce65
Commit
e9e9ce65
authored
Mar 12, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to newly pushed code
parent
158770e3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
sql/sql_db.cc
sql/sql_db.cc
+2
-2
sql/table.cc
sql/table.cc
+2
-1
No files found.
sql/sql_db.cc
View file @
e9e9ce65
...
@@ -381,13 +381,13 @@ bool mysql_change_db(THD *thd,const char *name)
...
@@ -381,13 +381,13 @@ bool mysql_change_db(THD *thd,const char *name)
ulong
db_access
;
ulong
db_access
;
DBUG_ENTER
(
"mysql_change_db"
);
DBUG_ENTER
(
"mysql_change_db"
);
if
(
!
dbname
||
!
(
db_length
=
strlen
gth
(
dbname
)))
if
(
!
dbname
||
!
(
db_length
=
strlen
(
dbname
)))
{
{
x_free
(
dbname
);
/* purecov: inspected */
x_free
(
dbname
);
/* purecov: inspected */
send_error
(
&
thd
->
net
,
ER_NO_DB_ERROR
);
/* purecov: inspected */
send_error
(
&
thd
->
net
,
ER_NO_DB_ERROR
);
/* purecov: inspected */
DBUG_RETURN
(
1
);
/* purecov: inspected */
DBUG_RETURN
(
1
);
/* purecov: inspected */
}
}
if
(
(
db_length
>
NAME_LEN
)
||
check_db_name
(
dbname
))
if
(
check_db_name
(
dbname
))
{
{
net_printf
(
&
thd
->
net
,
ER_WRONG_DB_NAME
,
dbname
);
net_printf
(
&
thd
->
net
,
ER_WRONG_DB_NAME
,
dbname
);
x_free
(
dbname
);
x_free
(
dbname
);
...
...
sql/table.cc
View file @
e9e9ce65
...
@@ -1216,10 +1216,11 @@ bool check_table_name(const char *name, uint length)
...
@@ -1216,10 +1216,11 @@ bool check_table_name(const char *name, uint length)
#endif
#endif
}
}
bool
check_column_name
(
const
char
*
name
)
bool
check_column_name
(
const
char
*
name
)
{
{
const
char
*
start
=
name
;
const
char
*
start
=
name
;
bool
last_char_is_space
=
false
;
bool
last_char_is_space
=
FALSE
;
while
(
*
name
)
while
(
*
name
)
{
{
...
...
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