Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb168915

Browse files
committed
Fix dependency generation for multicolumn foreign keys. From Adam Buraczewski.
1 parentc9a993c commitb168915

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)

[8]ページ先頭

©2009-2025 Movatter.jp