projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
767a54d
)
pgsql/schema_create_table_statement.sql
author
Alan Knowles
<alan@roojs.com>
Tue, 7 Oct 2014 12:02:02 +0000
(20:02 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 7 Oct 2014 12:02:02 +0000
(20:02 +0800)
pgsql/schema_create_table_statement.sql
patch
|
blob
|
history
diff --git
a/pgsql/schema_create_table_statement.sql
b/pgsql/schema_create_table_statement.sql
index
e7ee570
..
62ac1b1
100644
(file)
--- a/
pgsql/schema_create_table_statement.sql
+++ b/
pgsql/schema_create_table_statement.sql
@@
-111,7
+111,7
@@
BEGIN
v_table_ddl:= v_table_ddl||chr(10)||
'ALTER TABLE ' ||v_schema||'.'||p_table_name||' ADD CONSTRAINT ' || column_record.constraint_name ||
- ' FOREIGN KEY (' || column_record.column_name || ') REFERENCES ' ||
foreign_table_name || '(' ||
foreign_column_name || ') MATCH SIMPLE';
+ ' FOREIGN KEY (' || column_record.column_name || ') REFERENCES ' ||
column_record.foreign_table_name || '(' || column_record.
foreign_column_name || ') MATCH SIMPLE';
END LOOP;