db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1439195 - /db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/sql/templates/ddl/mssql/foreignKey.vm
Date Sun, 27 Jan 2013 21:48:54 GMT
Author: tfischer
Date: Sun Jan 27 21:48:53 2013
New Revision: 1439195

URL: http://svn.apache.org/viewvc?rev=1439195&view=rev
Log:
TORQUE-262 map onUpdate="restrict" and onDelete="restrict" to NO ACTION

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/sql/templates/ddl/mssql/foreignKey.vm

Modified: db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/sql/templates/ddl/mssql/foreignKey.vm
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/sql/templates/ddl/mssql/foreignKey.vm?rev=1439195&r1=1439194&r2=1439195&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/sql/templates/ddl/mssql/foreignKey.vm
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/sql/templates/ddl/mssql/foreignKey.vm
Sun Jan 27 21:48:53 2013
@@ -23,6 +23,9 @@ ALTER TABLE $tableName
 #if ($onUpdate == "setnull")
 
     ON UPDATE SET NULL##
+#elseif ($onUpdate == "restrict")
+
+    ON UPDATE NO ACTION##
 #elseif ($onUpdate)
 
     ON UPDATE ${onUpdate.toUpperCase()}##
@@ -30,10 +33,14 @@ ALTER TABLE $tableName
 #if ($onDelete == "setnull")
 
     ON DELETE SET NULL##
+#elseif ($onDelete == "restrict")
+
+    ON DELETE NO ACTION##
 #elseif ($onDelete)
 
     ON DELETE ${onDelete.toUpperCase()}##
 #end
+
 END
 ;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message