From 698923d6588ee15a386d26c45e5f25ee1a68cc34 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Wed, 3 May 2017 15:12:09 -0300 Subject: [PATCH] pg_dump/t/002: append terminating semicolon to SQL commands It's easy to overlook the need for one, and its lack is annoying for the next developer wanting to create a new test. Rather than expect every individual command to add the semicolon, just append one automatically. Discussion: http://postgr.es/m/20170503172746.rwftidszir67sgk7@alvherre.pgsql --- src/bin/pg_dump/t/002_pg_dump.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/pg_dump/t/002_pg_dump.pl b/src/bin/pg_dump/t/002_pg_dump.pl index ccd0ed6a539..0d7a49826a1 100644 --- a/src/bin/pg_dump/t/002_pg_dump.pl +++ b/src/bin/pg_dump/t/002_pg_dump.pl @@ -6414,7 +6414,8 @@ foreach my $test ( next; } - $create_sql .= $tests{$test}->{create_sql}; + # Add terminating semicolon + $create_sql .= $tests{$test}->{create_sql} . ";"; } }