10-16-2008 03:53 PM
Hello,
Does anybody have any experience in dealing with Postgres? I am trying this out as an alternative to MySQL and postgres doesn't like the Date/Time type of data that LabVIEW Database Module creates. Does anyone have any suggestions?
Thanks!
10-17-2008 05:40 AM
10-17-2008 08:36 AM
thanks for your reply,
Are you suggesting that in postgres I create the column to be a double or do I pass a double, U64, etc as a timestamp?
Arik
10-20-2008 03:40 AM
10-20-2008 08:20 AM
I got it! Thanks for your help. Converting it to double made the most sense since there is the 'convert to timestamp' tool and vice versa available.
Cheers,
Arik
10-20-2008 08:33 AM
12-22-2008 05:25 PM
12-22-2008 09:52 PM
The thing to understand is that unlike other datatypes, there is no standardized binary representation for time and date information. Hence, all time and data values are actually passed to the database as strings.The database then converts the string representation into its internal binary form using an expected format template.
I would therefore expect that the problem is that the structure of the time/date string that gets passed to the database doesn't match what the database is expecting. For example, say the database is expecting a date string in the form of MM/DD/YYYY (i.e. 12/22/2008) but you are sending the data in the form DD/MM/YYYY (i.e. 22/12/2008) - as for as the database is concerned you just specified the 12th day of the 22nd month...
What errors are you getting?
Mike...