dbTalk Databases Forums  

Empty date

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss Empty date in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
matius
 
Posts: n/a

Default Empty date - 07-12-2006 , 03:51 AM






Hi, I want to convert my database in FoxPro to PostgreSQL but I have a
big problem. Original database in FoxPro (dbc) using empty date but I
can't convert empty date to null because this column has properties not
null. PostgreSQL doesn't supported empty field. What should I do?


Reply With Quote
  #2  
Old   
Kenneth Downs
 
Posts: n/a

Default Re: Empty date - 07-23-2006 , 07:56 AM






matius wrote:

Quote:
Hi, I want to convert my database in FoxPro to PostgreSQL but I have a
big problem. Original database in FoxPro (dbc) using empty date but I
can't convert empty date to null because this column has properties not
null. PostgreSQL doesn't supported empty field. What should I do?
Technically there is nothing you can do. There is no "empty" date value in
postgres, you have to use null.

If you are not in control of this database, ask the person who put in the
NOT NULL rule what they would like you to do. If they are not around
anymore, ask their boss. If nobody knows, examine what would happen if you
removed the NOT NULL rule.

--
Kenneth Downs
Secure Data Software, Inc.
(Ken)nneth@(Sec)ure(Dat)a(.com)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.