Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: function ex...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 3106 of 3323
Post > Topic >>

Re: function exception

by George.Wright@[EMAIL PROTECTED] ("Wright, George") May 6, 2008 at 09:52 AM

Perfect! Thank you.

-----Original Message-----
From: Tom Lane [mailto:tgl@[EMAIL PROTECTED]
 Tuesday, May 06, 2008 10:45 AM
To: Wright, George
Cc: pgsql-novice@[EMAIL PROTECTED]
 Re: [NOVICE] function exception=20

"Wright, George" <George.Wright@[EMAIL PROTECTED]
> writes:
> I would expect it to return FALSE but it returns:
> ERROR:  date/time field value out of range: "2008-05-06 00:00:95"
> Is there either a specific error code to use or is there a generic
catch
> all code? I didn't see anything better listed at
> http://www.postgresql.org/docs/8.0/static/errcodes-appendix.html

Well, the way to debug this sort of thing is to look at the error code
number.  In psql you do it like this:

regression=3D# \set VERBOSITY verbose
regression=3D# select '2008-05-06 00:00:95'::timestamptz;
ERROR:  22008: date/time field value out of range: "2008-05-06 00:00:95"
LOCATION:  DateTimeParseError, datetime.c:3112

and then a search in the appendix for 22008 finds

	22008	DATETIME FIELD OVERFLOW

			regards, tom lane

--=20
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 3 Posts in Topic:
function exception
George.Wright@[EMAIL PROT  2008-05-06 09:23:55 
Re: function exception
tgl@[EMAIL PROTECTED] (T  2008-05-06 10:45:11 
Re: function exception
George.Wright@[EMAIL PROT  2008-05-06 09:52:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 6:17:15 CST 2008.