Skip site navigation (1) Skip section navigation (2)

pg_atoi() behavior change? Intentional?

From: Adam Haberlach <adam(at)newsnipple(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pg_atoi() behavior change? Intentional?
Date: 2001-02-24 18:18:10
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
	I've just upgraded to the beta4 in order to fix an RI
deadlock we seemed to be having with 7.0.3 -- and it seems
that one of the engineers has been writing some queries that
cast a text field to an int and take advantage of the
fact that we used to turn text fields with no digits into 0,
much as C's atoi function works.

	The new behavior is to throw a parse error, which causes
all kinds of problem.  Is this intentional?  I dimly remember
seeing a whole lot of atoi discussion, but I can't seem to
find it in my last two files of this mailing list.

Adam Haberlach            | All your base are belong to us.
adam(at)newsnipple(dot)com       | |
'88 EX500    '00 >^<      |


pgsql-hackers by date

Next:From: Timothy H. KeittDate: 2001-02-24 20:08:17
Subject: offset and limit in update and subselect
Previous:From: Peter MountDate: 2001-02-24 17:04:59
Subject: Re: Re: PostgreSQL JDBC

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group