Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
f3af469f
Commit
f3af469f
authored
Jan 13, 2011
by
Andreas Kusalananda Kähäri
Browse files
Get sprintf() formats right.
parent
209898c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
misc-scripts/production_database/scripts/push_master_tables.pl
...scripts/production_database/scripts/push_master_tables.pl
+3
-3
No files found.
misc-scripts/production_database/scripts/push_master_tables.pl
View file @
f3af469f
...
...
@@ -67,7 +67,7 @@ About:
and compares it to the corresponding tables on the given servers (by
default, the staging servers).
The program will display any discrepancies on the
display
while
The program will display any discrepancies on the
console
while
writing SQL to files in a subdirectory of the current directory called
"$outdir" that will correct the discrepancies.
...
...
@@ -443,13 +443,13 @@ foreach my $server (@servers) {
$t
,
$t
),
sprintf
(
"
-- INSERT INTO %s_dup
\n
"
.
"
-- SELECT * FROM %s WHERE %s_id = %
s
;
\n
",
.
"
-- SELECT * FROM %s WHERE %s_id = %
d
;
\n
",
$t
,
$t
,
$table
,
$master_pk
),
sprintf
(
"
-- %s_dup now contains
"
.
"
unresolved collisions
\n
"
),
sprintf
(
"
-- UPDATE %s SET
"
.
"
%s_id = %d
"
.
"
WHERE %s_id = %
s
;
\n\n
",
.
"
WHERE %s_id = %
d
;
\n\n
",
$t
,
$table
,
$master_pk
,
$table
,
$pk
)
);
}
...
...
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