Re: [BUGS] About Create Assertion

2004-02-28 Thread Peter Eisentraut
Gary WAN wrote: > I would like to ask if there is any SQL command to replace "CREATE > ASSERTION" in Postgresql since ASSERTION is not supported by > postgresql. Thank you. There is not, but this is the wrong list to be asking this. ---(end of broadcast)

Re: [BUGS] round(50.5) = 50

2004-02-28 Thread Peter Eisentraut
Philipp Matthias Hahn wrote: > # SELECT round(5.5::float4),round(50.5::float4); > round | round > ---+--- > 6 |50 > (1 row) > > I think this is a bug, since I would expect 6 and 51. The default rounding mode for floating point (determined by your C library, mostly) it to round

Re: [BUGS] Optimizer problem with subselect.c?

2004-02-28 Thread Tom Lane
"Daniel O'Neill" <[EMAIL PROTECTED]> writes: > Hmm, the design isn't very 'pick aparty', would it be kosher of me to send you the > full schema to work with? I can email it directly. Sure, a pg_dump -s dump would be fine. If it's large you can just send to me off-list. It's possible that this

Re: [BUGS] Optimizer problem with subselect.c?

2004-02-28 Thread Daniel O'Neill
On Fri, 27 Feb 2004 00:57:36 -0500 Tom Lane <[EMAIL PROTECTED]> wrote: > "Daniel O'Neill" <[EMAIL PROTECTED]> writes: > > Anyway, here's the vitals, including our layout: > > Could I trouble you to provide those table and view definitions as an > SQL script? (pg_dump -s will help you.) I'm too

[BUGS] About Create Assertion

2004-02-28 Thread Gary WAN
Dear Sir, I would like to ask if there is any SQL command to replace "CREATE ASSERTION" in Postgresql since ASSERTION is not supported by postgresql. Thank you. Best Regards, Gary Wan _ Linguaphone : Learning English? Get Japanese

[BUGS] Integer parsing bug?

2004-02-28 Thread Steve Atkins
Section 8.1 of the manual gives the range of an integer as -2147483648 to +2147483647. template1=# select '-2147483648'::int; int4 - -2147483648 (1 row) template1=# select -2147483648::int; ERROR: integer out of range Oops. template1=# select version();

[BUGS] round(50.5) = 50

2004-02-28 Thread Philipp Matthias Hahn
Hello! # SELECT round(5.5::float4),round(50.5::float4); round | round ---+--- 6 |50 (1 row) I think this is a bug, since I would expect 6 and 51. Doing the same without the float4-cast, it works correct. This bug bites me while passing parameters to a plpgsql function. This ha

[BUGS] ecpg segmentation error

2004-02-28 Thread Margit Schubert-While
Following cursor declaration which worked in 7.3.4, produces a seg fault with 7.4.1 and todays cvs. exec sql declare functestcur0 scroll cursor for select oid, * into :rownum ,:sfunckey ,:sfuncfill

[BUGS] ecpg multidimensional arrays

2004-02-28 Thread Margit Schubert-While
exec sql begin declare section; static int intcur[50][10] = { 0 }; produces : ERROR: No multi-dimensional array support for simple data types Margit ---(end of broadcast)--- TIP 6: Have you searched our list archives? ht