weimingtom / sqlitegen

Automatically exported from code.google.com/p/sqlitegen
1 stars 0 forks source link

Timestamp / Date / Bitmap type attributes. #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. define an attribute each of Temestamp/Date/Bitmap type in the Interface
(all are Nullable). E.g, Timestamp getPrescriptionDate();
2. The Gen_getValues() method in the generated class has the following
line:
values.put(GEN_FIELD_PRESCRIPTIONDATE,this.gen_prescriptionDate.toString());
3. When updating an instance of a class to database using
myObj.Gen_update(DB), the above line throws a null pointer exception as
this attribute is nullable.

What is the expected output? What do you see instead?
Handling of the nullable attributes especially non int/string/long types.

What version of the product are you using? On what operating system?
Latest

Please provide any additional information below.
I might be missing a trick is utilizing the SQLitegen. If so please guide
me in the right direction and disregard the reported issue.

Original issue reported on code.google.com by mba.for....@gmail.com on 14 Apr 2010 at 2:08

GoogleCodeExporter commented 8 years ago
You're not missing anything--

It's a good suggestion

Original comment by googlec...@antlersoft.com on 7 Jul 2010 at 8:35