Hello,
Suppose we have sql function which returns composite type.
When such function's last select statement doesn't return any row
error occurs -
ERROR: function returning row cannot return null value.
But if we use similar function that returns set of same type
error not occurs.
Example:
Ivan <[EMAIL PROTECTED]> writes:
> Suppose we have sql function which returns composite type.
> When such function's last select statement doesn't return any row
> error occurs -
> ERROR: function returning row cannot return null value.
Works for me (tested in 7.4.5 and CVS tip).
Hello Tom,
Tuesday, September 21, 2004, 6:17:37 PM, you wrote:
TL> Ivan <[EMAIL PROTECTED]> writes:
>> Suppose we have sql function which returns composite type.
>> When such function's last select statement doesn't return any row
>> error occurs -
>> ERROR: function returning row cannot return
Ivan <[EMAIL PROTECTED]> writes:
> Error occurs when do
> select * from "test"('secon')
Ah. I was trying "select test('foo')" which does work. Will look at
it.
regards, tom lane
---(end of broadcast)---
TIP 6: Have you sea
Karel, Andreas,
> > My idea is special internal API that will usable for new datetypes
> > programming if type is defined as "numeric + symbol", for example things
> > like speed, weight, currency.. etc.
>
> A type consisting of value and unit probably makes pgsql even more first
> choice for tech
Josh Berkus wrote:
The difference with currency would be the lack of a fixed conversion for
different units.For example, you can:
You're mixing up quite a lot of stuff here.
10m == 1000cm
This is just what I considered forbidden to be included in that "unit-ed
type" in my previous mail. c = c
The following bug has been logged online:
Bug reference: 1261
Logged by: Sean Chittenden
Email address: [EMAIL PROTECTED]
PostgreSQL version: 8.0 Beta
Operating system: OS-X, FreeBSD
Description:CREATE DATABASE OWNER not propagating to child objects?
Details:
H
The following bug has been logged online:
Bug reference: 1262
Logged by: Nadia
Email address: [EMAIL PROTECTED]
PostgreSQL version: 7.3.7
Operating system: Windows XP
Description:Jimminy Cricket
Details:
This bug looks cute and convincing, but BEWARE. Despite h
The following bug has been logged online:
Bug reference: 1263
Logged by: Nadia
Email address: [EMAIL PROTECTED]
PostgreSQL version: 7.3.7
Operating system: Windows XP
Description:Jimminy Cricket
Details:
This bug looks cute and convincing, but BEWARE. Despite h
The following bug has been logged online:
Bug reference: 1264
Logged by: Nadia
Email address: [EMAIL PROTECTED]
PostgreSQL version: 7.3.7
Operating system: Windows XP
Description:Jimminy Cricket
Details:
This bug looks cute and convincing, but BEWARE. Despite h
10 matches
Mail list logo