LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-12-2004, 07:11 AM   #1
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Rep: Reputation: 15
postgres datestyle problems...


hi all;

i have used php along with postgres on slack to make a database driven application. i have a test machine and a live machine. i had changed the datestyle to ISO , US in postgres on my test machine.

now that the product is ready i shifted the whole application to live machine. needless to say, i had to chnage the datestyle on the live machine as well and i did it like this :

SET DATESTYLE TO 'iso, us';

now when i tried to run my application it gave me this error while execution of the of a query.. it is an insert query which tries to insert many data. one of the is regarding date. in PHp i am picking up date as dd/mm/yyyy:

Warning: pg_query(): Query failed: ERROR: date/time field value out of range: "17/12/1982" HINT: Perhaps you need a different "datestyle" setting. in /var/www/htdocs/recruit/details.php on line 85

i do not understand this.. i tried all the datestyle conventions on live machine.. but the problem persisted.. again i checked the datestyle of the test machine and it tells me that it is ISO, US... what to do now.. i am stuck up totally..

i have tried on live machine several times.. upto yesterday it was working fine.. this problem has started to happen today only.. upto yesterday, even the live machine was performing fine without any change in datestyle..

regards
Xing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postgres Hiper1 Linux - Newbie 8 04-10-2005 05:43 PM
postgres and Fedora 2 lewindha Linux - Software 2 07-26-2004 11:30 AM
MySQL or PostGres ?? Peds Linux - Software 5 02-17-2004 11:43 PM
Problems With Postgres-contrib Module the_linux_raven Conectiva 1 10-06-2003 12:52 PM
OpenLdap+postgres sanw2k Linux - Newbie 0 03-14-2003 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration