Need Help In arrays

Started by Salman Razzaqabout 20 years ago4 messageshackers
Jump to latest
#1Salman Razzaq
salmanrazzaq2005@gmail.com

Dear Group Members,
Hi,
I found it difficult to use 'construct_md_array' as i want to
construct an array with NULL elements included in it. How do i do that?.
Thankyou.

#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Salman Razzaq (#1)
Re: Need Help In arrays

Salman Razzaq wrote:

I found it difficult to use 'construct_md_array' as i want to
construct an array with NULL elements included in it. How do i do that?.

Keep in mind that you can't do that in released versions (8.1 and
earlier); it's only possible in the current development branch. If you
are using 8.2dev, see the code comment -- it's explained there.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

#3Salman Razzaq
salmanrazzaq2005@gmail.com
In reply to: Alvaro Herrera (#2)
Re: Need Help In arrays

Hi,
Thanks for replying. I am using the latest code that is 8.1.2. I look at
the comments of construct_md_array function. On it, it says that NULL values
are not supported. Please kindly help me out or tell me some other way.
Thankyou.

Show quoted text

On 2/3/06, Alvaro Herrera <alvherre@commandprompt.com> wrote:

Salman Razzaq wrote:

I found it difficult to use 'construct_md_array' as i want to
construct an array with NULL elements included in it. How do i do

that?.

Keep in mind that you can't do that in released versions (8.1 and
earlier); it's only possible in the current development branch. If you
are using 8.2dev, see the code comment -- it's explained there.

--
Alvaro Herrera
http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

#4Pavel Stehule
pavel.stehule@gmail.com
In reply to: Salman Razzaq (#3)
Re: Need Help In arrays

Hello

there isn't other way :-). If you can, use source code from cvs and compile
postgresql.

http://www.postgresql.org/developer/sourcecode/

or you can use string array, and fictive NULL values.

Regards
Pavel Stehule

Hi,
Thanks for replying. I am using the latest code that is 8.1.2. I look at
the comments of construct_md_array function. On it, it says that NULL
values
are not supported. Please kindly help me out or tell me some other way.
Thankyou.

On 2/3/06, Alvaro Herrera <alvherre@commandprompt.com> wrote:

Salman Razzaq wrote:

I found it difficult to use 'construct_md_array' as i want

to

construct an array with NULL elements included in it. How do i do

that?.

Keep in mind that you can't do that in released versions (8.1 and
earlier); it's only possible in the current development branch. If you
are using 8.2dev, see the code comment -- it's explained there.

--
Alvaro Herrera
http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

_________________________________________________________________
Chcete sdilet sve obrazky a hudbu s prateli? http://messenger.msn.cz/