Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b168915

Browse files
committed
Fix dependency generation for multicolumn foreign keys. From Adam Buraczewski.
1 parent c9a993c commit b168915

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/adddepend/adddepend

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/perl
2-
# $Id: adddepend,v 1.2 2002/10/18 18:41:19 momjian Exp $
2+
# $Id: adddepend,v 1.3 2002/12/02 00:28:29 tgl Exp $
33

44
# Project exists to assist PostgreSQL users with their structural upgrade
55
# from 7.2 (or prior) to 7.3 (possibly later). Must be run against a 7.3
@@ -221,7 +221,7 @@ sub findForeignKeys
221221
my $ref_cols = "$fcolumn_name";
222222

223223
# Perhaps there is more than a single column
224-
while ($lcolumn_name = pop(@junk) and $fcolumn_name = pop(@junk)) {
224+
while ($lcolumn_name = shift(@junk) and $fcolumn_name = shift(@junk)) {
225225
$key_cols .= ", $lcolumn_name";
226226
$ref_cols .= ", $fcolumn_name";
227227
}

0 commit comments

Comments
 (0)