Author: tfischer
Date: Fri Aug 26 14:00:37 2005
New Revision: 240343
URL: http://svn.apache.org/viewcvs?rev=240343&view=rev
Log:
Fixed generation of NULL/NOT NULL, DEFAULT, and IDENTITY declaration for HSQLDB.
Thanks to Stefan Podkowinski for reporting the bug and insisting that it still
exists in 3.2-RC1
Modified:
db/torque/runtime/trunk/xdocs/changes.xml
db/torque/templates/trunk/src/templates/sql/base/hypersonic/columns.vm
Modified: db/torque/runtime/trunk/xdocs/changes.xml
URL:
http://svn.apache.org/viewcvs/db/torque/runtime/trunk/xdocs/changes.xml?rev=240343&r1=240342&r2=240343&view=diff
==============================================================================
--- db/torque/runtime/trunk/xdocs/changes.xml (original)
+++ db/torque/runtime/trunk/xdocs/changes.xml Fri Aug 26 14:00:37 2005
@@ -26,6 +26,10 @@
<body>
<release version="3.2-rc2-dev" date="in SVN">
+ <action type="fix" dev="tfischer">
+ For HSQLDB, the generator now generates
+ NULL/NOT NULL, DEFAULT and IDENTITY declarations
+ </action>
<action type="add" dev="tfischer">
The generated beans are now serializable.
</action>
Modified: db/torque/templates/trunk/src/templates/sql/base/hypersonic/columns.vm
URL:
http://svn.apache.org/viewcvs/db/torque/templates/trunk/src/templates/sql/base/hypersonic/columns.vm?rev=240343&r1=240342&r2=240343&view=diff
==============================================================================
--- db/torque/templates/trunk/src/templates/sql/base/hypersonic/columns.vm
(original)
+++ db/torque/templates/trunk/src/templates/sql/base/hypersonic/columns.vm Fri
Aug 26 14:00:37 2005
@@ -12,9 +12,6 @@
## See the License for the specific language governing permissions and
## limitations under the License.
#foreach ($col in $table.Columns)
- #set ( $type = $col.Domain.SqlType )
- #set ( $size = $col.printSize() )
- #set ( $default = $col.DefaultSetting )
- #set ( $entry = "$col.Name $type $size $col.AutoIncrementString," )
+ #set ( $entry = "$col.SqlString," )
$strings.sub($strings.collapseSpaces($entry)," ,",",")
#end
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]