summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index efba51f3e..eea9b4cc7 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -4684,7 +4684,7 @@ sub check_same_schema {
. q{COALESCE(numeric_precision, 0), }
. q{COALESCE(numeric_scale,0) }
. q{FROM information_schema.columns }
- . q{ORDER BY table_schema, table_name, column_name, ordinal_position};
+ . q{ORDER BY table_schema, table_name, ordinal_position, column_name};
$info = run_command($SQL, { dbuser => $opt{dbuser}[$x-1], dbnumber => $x } );
my $oldrelation = '';
my $col = 0;