db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henn...@apache.org
Subject cvs commit: db-torque/src/generator/src/templates/sql/load/sybase val.vm
Date Mon, 28 Jul 2003 11:49:09 GMT
henning     2003/07/28 04:49:09

  Modified:    src/generator/src/templates/sql/load/axion val.vm
               src/generator/src/templates/sql/load/db2 val.vm
               src/generator/src/templates/sql/load/db2400 val.vm
               src/generator/src/templates/sql/load/hypersonic val.vm
               src/generator/src/templates/sql/load/msaccess val.vm
               src/generator/src/templates/sql/load/mssql val.vm
               src/generator/src/templates/sql/load/mysql val.vm
               src/generator/src/templates/sql/load/oracle val.vm
               src/generator/src/templates/sql/load/postgresql val.vm
               src/generator/src/templates/sql/load/sapdb val.vm
               src/generator/src/templates/sql/load/sybase val.vm
  Log:
  Clean up all the value generating templates for data load. They now simply
  ask the model whether a column should be escaped and use the escaped value
  if yes.
  
  Revision  Changes    Path
  1.2       +1 -1      db-torque/src/generator/src/templates/sql/load/axion/val.vm
  
  Index: val.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/load/axion/val.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- val.vm	10 Feb 2003 13:18:50 -0000	1.1
  +++ val.vm	28 Jul 2003 11:49:08 -0000	1.2
  @@ -1 +1 @@
  -#if($column.Column.TorqueType=="VARCHAR" || $column.Column.TorqueType=="LONGVARCHAR"||
$column.Column.TorqueType=="DATE" || $column.Column.TorqueType=="CHAR")'$column.Value'#else$column.Value#end
  +#if($column.Column.needEscapedValue())$column.EscapedValue#else$column.Value#end
  
  
  
  1.2       +1 -1      db-torque/src/generator/src/templates/sql/load/db2/val.vm
  
  Index: val.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/load/db2/val.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- val.vm	10 Feb 2003 13:18:50 -0000	1.1
  +++ val.vm	28 Jul 2003 11:49:08 -0000	1.2
  @@ -1 +1 @@
  -#if($column.Column.TorqueType=="VARCHAR" || $column.Column.TorqueType=="LONGVARCHAR"||
$column.Column.TorqueType=="DATE" || $column.Column.TorqueType=="CHAR")'$column.Value'#else$column.Value#end
  +#if($column.Column.needEscapedValue())$column.EscapedValue#else$column.Value#end
  
  
  
  1.2       +1 -1      db-torque/src/generator/src/templates/sql/load/db2400/val.vm
  
  Index: val.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/load/db2400/val.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- val.vm	10 Feb 2003 13:18:51 -0000	1.1
  +++ val.vm	28 Jul 2003 11:49:08 -0000	1.2
  @@ -1 +1 @@
  -#if($column.Column.TorqueType=="VARCHAR" || $column.Column.TorqueType=="LONGVARCHAR"||
$column.Column.TorqueType=="DATE" || $column.Column.TorqueType=="CHAR")'$column.Value'#else$column.Value#end
  +#if($column.Column.needEscapedValue())$column.EscapedValue#else$column.Value#end
  
  
  
  1.2       +1 -1      db-torque/src/generator/src/templates/sql/load/hypersonic/val.vm
  
  Index: val.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/load/hypersonic/val.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- val.vm	10 Feb 2003 13:18:46 -0000	1.1
  +++ val.vm	28 Jul 2003 11:49:08 -0000	1.2
  @@ -1 +1 @@
  -#if($column.Column.TorqueType=="VARCHAR" || $column.Column.TorqueType=="LONGVARCHAR"||
$column.Column.TorqueType=="DATE" || $column.Column.TorqueType=="CHAR")'$column.Value'#else$column.Value#end
  +#if($column.Column.needEscapedValue())$column.EscapedValue#else$column.Value#end
  
  
  
  1.2       +1 -1      db-torque/src/generator/src/templates/sql/load/msaccess/val.vm
  
  Index: val.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/load/msaccess/val.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- val.vm	10 Feb 2003 13:18:50 -0000	1.1
  +++ val.vm	28 Jul 2003 11:49:09 -0000	1.2
  @@ -1 +1 @@
  -#if($column.Column.TorqueType=="VARCHAR" || $column.Column.TorqueType=="LONGVARCHAR"||
$column.Column.TorqueType=="DATE" || $column.Column.TorqueType=="CHAR")'$column.Value'#else$column.Value#end
  +#if($column.Column.needEscapedValue())$column.EscapedValue#else$column.Value#end
  
  
  
  1.2       +1 -1      db-torque/src/generator/src/templates/sql/load/mssql/val.vm
  
  Index: val.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/load/mssql/val.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- val.vm	10 Feb 2003 13:18:51 -0000	1.1
  +++ val.vm	28 Jul 2003 11:49:09 -0000	1.2
  @@ -1 +1 @@
  -#if($column.Column.TorqueType=="VARCHAR" || $column.Column.TorqueType=="LONGVARCHAR"||
$column.Column.TorqueType=="DATE" || $column.Column.TorqueType=="CHAR")'$column.Value'#else$column.Value#end
  +#if($column.Column.needEscapedValue())$column.EscapedValue#else$column.Value#end
  
  
  
  1.2       +1 -1      db-torque/src/generator/src/templates/sql/load/mysql/val.vm
  
  Index: val.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/load/mysql/val.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- val.vm	10 Feb 2003 13:18:50 -0000	1.1
  +++ val.vm	28 Jul 2003 11:49:09 -0000	1.2
  @@ -1 +1 @@
  -#if($column.Column.TorqueType=="VARCHAR" || $column.Column.TorqueType=="LONGVARCHAR"||
$column.Column.TorqueType=="DATE" || $column.Column.TorqueType=="TIMESTAMP" || $column.Column.TorqueType=="DATETIME"
|| $column.Column.TorqueType=="CHAR")'$column.Value'#else$column.Value#end
  +#if($column.Column.needEscapedValue())$column.EscapedValue#else$column.Value#end
  
  
  
  1.2       +1 -1      db-torque/src/generator/src/templates/sql/load/oracle/val.vm
  
  Index: val.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/load/oracle/val.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- val.vm	10 Feb 2003 13:18:50 -0000	1.1
  +++ val.vm	28 Jul 2003 11:49:09 -0000	1.2
  @@ -1 +1 @@
  -#if($column.Column.TorqueType=="VARCHAR" || $column.Column.TorqueType=="LONGVARCHAR"||
$column.Column.TorqueType=="DATE" || $column.Column.TorqueType=="CHAR")'$column.Value'#else$column.Value#end
  +#if($column.Column.needEscapedValue())$column.EscapedValue#else$column.Value#end
  
  
  
  1.3       +1 -1      db-torque/src/generator/src/templates/sql/load/postgresql/val.vm
  
  Index: val.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/load/postgresql/val.vm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- val.vm	24 Jun 2003 10:02:54 -0000	1.2
  +++ val.vm	28 Jul 2003 11:49:09 -0000	1.3
  @@ -1 +1 @@
  -#if($column.Column.TorqueType=="VARCHAR" || $column.Column.TorqueType=="LONGVARCHAR"||
$column.Column.TorqueType=="DATE" || $column.Column.TorqueType=="TIMESTAMP" || $column.Column.TorqueType=="CHAR")'$column.Value'#else$column.Value#end
  +#if($column.Column.needEscapedValue())$column.EscapedValue#else$column.Value#end
  
  
  
  1.2       +1 -1      db-torque/src/generator/src/templates/sql/load/sapdb/val.vm
  
  Index: val.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/load/sapdb/val.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- val.vm	10 Feb 2003 13:18:51 -0000	1.1
  +++ val.vm	28 Jul 2003 11:49:09 -0000	1.2
  @@ -1 +1 @@
  -#if($column.Column.TorqueType=="VARCHAR" || $column.Column.TorqueType=="LONGVARCHAR"||
$column.Column.TorqueType=="DATE" || $column.Column.TorqueType=="CHAR")'$column.Value'#else$column.Value#end
  +#if($column.Column.needEscapedValue())$column.EscapedValue#else$column.Value#end
  
  
  
  1.2       +1 -1      db-torque/src/generator/src/templates/sql/load/sybase/val.vm
  
  Index: val.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/load/sybase/val.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- val.vm	10 Feb 2003 13:18:48 -0000	1.1
  +++ val.vm	28 Jul 2003 11:49:09 -0000	1.2
  @@ -1 +1 @@
  -#if($column.Column.TorqueType=="VARCHAR" || $column.Column.TorqueType=="LONGVARCHAR"||
$column.Column.TorqueType=="DATE" || $column.Column.TorqueType=="CHAR")'$column.Value'#else$column.Value#end
  +#if($column.Column.needEscapedValue())$column.EscapedValue#else$column.Value#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