db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1377204 - /db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/SchemaTypeHelper.java
Date Sat, 25 Aug 2012 04:29:21 GMT
Author: tfischer
Date: Sat Aug 25 04:29:19 2012
New Revision: 1377204

URL: http://svn.apache.org/viewvc?rev=1377204&view=rev
Log:
Better handling of unknown schema type

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/SchemaTypeHelper.java

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/SchemaTypeHelper.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/SchemaTypeHelper.java?rev=1377204&r1=1377203&r2=1377204&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/SchemaTypeHelper.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/SchemaTypeHelper.java
Sat Aug 25 04:29:19 2012
@@ -80,8 +80,11 @@ public final class SchemaTypeHelper
         SqlType domain = getDomain(columnElement, controllerState);
         if (domain != null && domain.getSqlTypeName() != null)
         {
-            schemaType = SchemaType.valueOf(domain.getSqlTypeName());
-            if (schemaType == null)
+            try
+            {
+                schemaType = SchemaType.valueOf(domain.getSqlTypeName());
+            }
+            catch (IllegalArgumentException e)
             {
                 throw new SourceTransformerException("Unknown type "
                         + domain.getSqlTypeName()



---------------------------------------------------------------------
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