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
faa63c50
Commit
faa63c50
authored
Mar 24, 2001
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql into serg.mysql.com:/usr/home/serg/Abk/mysql
parents
2531f388
edba53f3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+5
-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 @
faa63c50
heikki@donna.mysql.fi
jani@hynda.mysql.fi
monty@donna.mysql.fi
paul@central.snake.net
sasha@mysql.sashanet.com
serg@serg.mysql.com
Docs/manual.texi
View file @
faa63c50
...
...
@@ -13744,7 +13744,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 @
faa63c50
...
...
@@ -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 @
faa63c50
...
...
@@ -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