File: uncomment_add_constraint.patch

package info (click to toggle)
tedia2sql 1.2.12-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 384 kB
  • ctags: 553
  • sloc: perl: 2,196; sql: 1,683; makefile: 31; sh: 24
file content (15 lines) | stat: -rw-r--r-- 780 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- tedia2sql.orig/tedia2sql	2006-12-03 04:47:40.000000000 +0900
+++ tedia2sql.new/tedia2sql	2008-07-18 09:27:31.000000000 +0900
@@ -2815,9 +2815,9 @@
 		$return .= $in . "foreign key ($keyColumns)" . $nl;
 		$return .= $in . "references $refTable ($refColumns) $goCommand";
 	} elsif ($opt_t eq 'mysql' || $opt_t eq 'ingres') {
-		$return  = &sqlComment("alter table $className add constraint $constraintName") . $nl;
-		$return .= $in . "foreign key ($keyColumns) references" . $nl;
-		$return .= $in . "$refTable ($refColumns) for $opt_t";
+	        $return  = "alter table $className add constraint $constraintName" . $nl;
+ 	        $return .= $in . "foreign key ($keyColumns) references" . $nl;
+	        $return .= $in . "$refTable ($refColumns);";
 	}
 
 	return $return;