You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by "Brekke, Jeff" <Je...@qg.com> on 2001/07/03 20:49:15 UTC

[PATCH] id-table torque templates

Fixed the following:

*) In torque/templates/sql/id-table sql code for tables with skipSql=true
was being generated.

*) The name of the generated .sql file, when there were multiple databases
defined in the schema, was incorrect: ${project} wasn't being expanded and
the rest of file name was different than in the single database case.

*) Since all the idtable.[databasename] files were the same, I setup a
db.props and updated Control.vm to
read from it like torque/templates/sql/security so there is now only one
idtable.default and we can add db specific ones if we need to in the future.

Since I don't have write access from work and you cannot remove a file from
cvs without it, I can't get a good diff.  So I just zipped up the contents
of my torque/templates/sql/id-table directory and put it here:
http://sites.netscape.net/ekkerbj/patches

NOTE: If there are multiple databases defined in your schema, the portion of
the build where the id table is initialized with project tables will fail
since there could potentially be multiple .sql files generated and the names
are in a different format.  I've just edited my build.xml files to work
correctly in these cases. 

-----------------------------------------------------------------
    Throw away my code, but never, never throw away my tests.
-----------------------------------------------------------------
Jeffrey D. Brekke                                   Quad/Graphics
Jeff.Brekke@qg.com                              http://www.qg.com
-----------------------------------------------------------------


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