thanks scott.

here are the diffs:

#####

Index: columns.vm
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-torque/src/templates/sql/base/postgresql/columns.vm,v
retrieving revision 1.4
diff -r1.4 columns.vm
0a1
> #set($_DQ_='"')
18c19
< #set ( $entry = "$col.Name $type $size $default $nullString" )
---
> #set ( $entry = "$_DQ_$col.Name$_DQ_ $type $size $default $nullString" )
20c21
< #set ( $entry = $strings.select($col.isAutoIncrement(), "$col.Name $autoIncrement", $entry) )
---
> #set ( $entry = $strings.select($col.isAutoIncrement(), "$_DQ_$col.Name$_DQ_ $autoIncrement", $entry) )

#####

Index: table.vm
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-torque/src/templates/sql/base/postgresql/table.vm,v
retrieving revision 1.3
diff -r1.3 table.vm
5c5
< $generator.parse("$basepath/drop.vm", "", "table", $tbl)
---
> ##$generator.parse("$basepath/drop.vm", "", "table", $tbl)
9c9
< CREATE TABLE $table.Name
---
> CREATE TABLE "$table.Name"


#####


Index: primarykey.vm
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-torque/src/templates/sql/base/postgresql/primarykey.vm,v
retrieving revision 1.3
diff -r1.3 primarykey.vm
0a1
> #set($_DQ_='"')
2c3
< PRIMARY KEY ($table.printPrimaryKey()),
---
> PRIMARY KEY ($_DQ_$table.printPrimaryKey()$_DQ_),



#####


Index: createdb.vm
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-torque/src/templates/sql/db-init/postgresql/createdb.vm,v
retrieving revision 1.1
diff -r1.1 createdb.vm
2c2
< drop database $databaseName;
---
> ##drop database $databaseName;


#####


Index: DTDResolver.java
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-torque/src/java/org/apache/torque/engine/database/transform/DTDResolver.java,v
retrieving revision 1.10
diff -r1.10 DTDResolver.java
86,87c86,87
< InputStream dtdStream
< = getClass().getResourceAsStream("database.dtd");
---
> //InputStream dtdStream = getClass().getResourceAsStream("database.dtd");
> InputStream dtdStream = this.getClass().getClassLoader().getResourceAsStream("database.dtd");
95c95,97
< }
---
> } else {
> System.out.println("dtdStream is null.");
> }




note: i removed the "dropdb"/"droptable" code from some of the templates b/c i'm only using the create-db and create-tables part of torque from another program and didn't want torque dropping my tables on each execution. as such, you can ignore the drop... changes, if you want. ideally, it would be nice to have the drop template code in separate files from the create template code.

thanks again for the great work. it is much appreciated.



At 15:21 03/01/06 +1100, you wrote:
On 6/01/2003 3:15 PM, "tek1" <[EMAIL PROTECTED]> wrote:

> ok, will do, but what is the cvs login info? it's not mentioned anywhere
> on the torque page.
http://jakarta.apache.org/site/cvsindex.html

Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to