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
45058c68
Commit
45058c68
authored
Mar 03, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-4.1-8136
into mysql.com:/home/jimw/my/mysql-4.1-clean
parents
b0727186
bf12579c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
scripts/mysqlhotcopy.sh
scripts/mysqlhotcopy.sh
+11
-4
No files found.
scripts/mysqlhotcopy.sh
View file @
45058c68
...
...
@@ -272,10 +272,7 @@ foreach my $rdb ( @db_desc ) {
my
$negated
;
if
(
$rdb
->
{
t_regex
})
{
$t_regex
=
$rdb
->
{
t_regex
}
;
## assign temporary regex
$negated
=
$t_regex
=
~
tr
/~//d
;
## remove and count
## negation operator: we
## don't allow ~ in table
## names
$negated
=
$t_regex
=
~ s/^~//
;
## note and remove negation operator
$t_regex
=
qr/
$t_regex
/
;
## make regex string from
## user regex
...
...
@@ -820,6 +817,16 @@ sub get_list_of_tables {
})
;
my @dbh_tables
=
eval
{
$dbh
->tables
()
}
;
## Remove quotes around table names
my
$quote
=
$dbh
->get_info
(
29
)
;
# SQL_IDENTIFIER_QUOTE_CHAR
if
(
$quote
)
{
foreach
(
@dbh_tables
)
{
s/^
$quote
(
.
*
)
$quote$/$1
/
;
s/
$quote$quote
/
$quote
/g
;
}
}
$dbh
->disconnect
()
;
return
@dbh_tables
;
}
...
...
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