• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
postgresql and date columns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Patched MySQL plugin
  • Next by Date: Re: [OT] Restoring a FrontBase DB
  • Previous by thread: Re: Default value for attribute in EntityModeler?
  • Next by thread: BugTracker on Derby
  • Index(es):
    • Date
    • Thread