Forum: Building VoltDB Applications

Post: Help using Timestamp

Help using Timestamp
yairogen
Mar 1, 2011
Hi,
I had a schema that used DATE type. This was not accepted by VoltDB, so I switched to TIMESTAMP.
1. Is this the right approach?
2. If I use TIMESTAMP what should be in the java source for the procedure? I thought using java.sql.Timestamp is the right course of action bur get: "Procedure: AddEntitlement has a parameter with invalid type: Timestamp" when trying to compile.
Please advise.
Yair
re: Help using Tempstamp
tcallaghan
Mar 1, 2011
Yair,
1. Is this the right approach?
Yes, this is the correct approach.
2. If I use TIMESTAMP what should be in the java source for the procedure? I thought using java.sql.Timestamp is the right course of action bur get: "Procedure: AddEntitlement has a parameter with invalid type: Timestamp" when trying to compile.
Use org.voltdb.types.TimestampType.
-Tim