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
fe065fe7
Commit
fe065fe7
authored
Mar 03, 2005
by
jimw@mysql.com
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
0e8a5dbe
99bd939b
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 @
fe065fe7
...
@@ -272,10 +272,7 @@ foreach my $rdb ( @db_desc ) {
...
@@ -272,10 +272,7 @@ foreach my $rdb ( @db_desc ) {
my
$negated
;
my
$negated
;
if
(
$rdb
->
{
t_regex
})
{
if
(
$rdb
->
{
t_regex
})
{
$t_regex
=
$rdb
->
{
t_regex
}
;
## assign temporary regex
$t_regex
=
$rdb
->
{
t_regex
}
;
## assign temporary regex
$negated
=
$t_regex
=
~
tr
/~//d
;
## remove and count
$negated
=
$t_regex
=
~ s/^~//
;
## note and remove negation operator
## negation operator: we
## don't allow ~ in table
## names
$t_regex
=
qr/
$t_regex
/
;
## make regex string from
$t_regex
=
qr/
$t_regex
/
;
## make regex string from
## user regex
## user regex
...
@@ -820,6 +817,16 @@ sub get_list_of_tables {
...
@@ -820,6 +817,16 @@ sub get_list_of_tables {
})
;
})
;
my @dbh_tables
=
eval
{
$dbh
->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
()
;
$dbh
->disconnect
()
;
return
@dbh_tables
;
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