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
24424453
Commit
24424453
authored
Mar 21, 2001
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug with mysql_change_db() fixed
BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
parent
14aa6b46
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
Docs/manual.texi
Docs/manual.texi
+1
-1
sql/sql_db.cc
sql/sql_db.cc
+2
-1
sql/table.cc
sql/table.cc
+1
-1
No files found.
BitKeeper/etc/logging_ok
View file @
24424453
...
...
@@ -2,3 +2,4 @@ jani@hynda.mysql.fi
heikki@donna.mysql.fi
monty@donna.mysql.fi
paul@central.snake.net
serg@serg.mysql.com
Docs/manual.texi
View file @
24424453
...
...
@@ -13726,7 +13726,7 @@ in ANSI mode. @xref{ANSI mode}.
@multitable @columnfractions .15 .15 .70
@item @strong{Identifier} @tab @strong{Max length} @tab @strong{Allowed characters}
@item Database @tab 64 @tab Any character that is allowed in a directory name except @samp{/}.
@item Database @tab 64 @tab Any character that is allowed in a directory name except @samp{/}
or @samp{.}
.
@item Table @tab 64 @tab Any character that is allowed in a file name, except @samp{/} or @samp{.}.
@item Column @tab 64 @tab All characters.
@item Alias @tab 255 @tab All characters.
sql/sql_db.cc
View file @
24424453
...
...
@@ -264,9 +264,10 @@ bool mysql_change_db(THD *thd,const char *name)
send_error
(
&
thd
->
net
,
ER_NO_DB_ERROR
);
/* purecov: inspected */
DBUG_RETURN
(
1
);
/* purecov: inspected */
}
if
(
length
>
NAME_LEN
)
if
(
(
length
>
NAME_LEN
)
||
check_db_name
(
dbname
)
)
{
net_printf
(
&
thd
->
net
,
ER_WRONG_DB_NAME
,
dbname
);
x_free
(
dbname
);
DBUG_RETURN
(
1
);
}
DBUG_PRINT
(
"general"
,(
"Use database: %s"
,
dbname
));
...
...
sql/table.cc
View file @
24424453
...
...
@@ -1052,7 +1052,7 @@ bool check_db_name(const char *name)
}
}
#endif
if
(
*
name
==
'/'
||
*
name
==
FN_LIBCHAR
)
if
(
*
name
==
'/'
||
*
name
==
FN_LIBCHAR
||
*
name
==
FN_EXTCHAR
)
return
1
;
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