You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Eric Carr <ec...@usmint.treas.gov> on 2002/12/17 23:51:22 UTC

[SOURCE] Issue #TRQS97 - object.vm generates classes with bad syntax when using prima...

You can view the issue detail at the following URL:
<http://scarab.werken.com/scarab/issues/id/TRQS97>

Type :        Defect
Issue Id :    TRQS97
Reported by: Eric Carr
             eric_carr - (ecarr@usmint.treas.gov)

Details:

Summary: object.vm generates classes with bad syntax when using primary keys of short or byte
Description: When compiling the code using a database with primary keys of shortint or tinyint, we get the following errors:

- when using a byte for a primary key, the objects.vm file had an extra  paren ")" in it, giving a compilation error.
- When using a short or byte as a foreign key, a set is generated for the ability to set the value based on an object. Using the template, it produces the following code:
           if (v == null)
	        {
      	        setForeignKey(0);
	         }
Since the key is a short or byte, this would cause an error.  This also occurs in the CopyInto method.

Status: New
Operating system: Windows
Priority: Undecided