db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Carr <ec...@usmint.treas.gov>
Subject [SOURCE] Issue #TRQS97 - object.vm generates classes with bad syntax when using prima...
Date Tue, 17 Dec 2002 22:51:22 GMT
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


Mime
View raw message