postgresql and date columns
postgresql and date columns
- Subject: postgresql and date columns
- From: Theodore Petrosky <email@hidden>
- Date: Thu, 30 Sep 2010 12:27:15 -0700 (PDT)
so with all this discussion on dates and mysql, I thought I would look at what was happening with postgresql. so my migration goes like this:
ERXMigrationTable invoiceTable = database.newTableNamed("t_invoice");
invoiceTable.newIntegerColumn("id", false);
invoiceTable.newTimestampColumn("c_invoice_booked_date", false);
invoiceTable.newLargeStringColumn("c_notes", true);
invoiceTable.create();
invoiceTable.setPrimaryKey("id");
the column c_invoice_booked_date was specified as;
Prototype: date
Data Type: Date
external type: timestamp (even if I change this to 'date' it does no good)
what I get in the backend is a "timestamp without time zone".
so unless someone is going to say, "use this migration type xxx", I can not get a 'date' type column in postgresql either.
or I don't understand the conversation.
Ted
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden