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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy