Commit f3af469f authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Get sprintf() formats right.

parent 209898c5
...@@ -67,7 +67,7 @@ About: ...@@ -67,7 +67,7 @@ About:
and compares it to the corresponding tables on the given servers (by and compares it to the corresponding tables on the given servers (by
default, the staging servers). 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 writing SQL to files in a subdirectory of the current directory called
"$outdir" that will correct the discrepancies. "$outdir" that will correct the discrepancies.
...@@ -443,13 +443,13 @@ foreach my $server (@servers) { ...@@ -443,13 +443,13 @@ foreach my $server (@servers) {
$t, $t ), $t, $t ),
sprintf( sprintf(
"-- INSERT INTO %s_dup\n" "-- 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 ), $t, $t, $table, $master_pk ),
sprintf( "-- %s_dup now contains " sprintf( "-- %s_dup now contains "
. "unresolved collisions\n" ), . "unresolved collisions\n" ),
sprintf( "-- UPDATE %s SET " sprintf( "-- UPDATE %s SET "
. "%s_id = %d " . "%s_id = %d "
. "WHERE %s_id = %s;\n\n", . "WHERE %s_id = %d;\n\n",
$t, $table, $master_pk, $t, $table, $master_pk,
$table, $pk ) ); $table, $pk ) );
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment