From: Adam Witney <awitney@sghms.ac.uk>
To: pgsql-interfaces <pgsql-interfaces@postgresql.org>
Subject: Arrays and DBD:Pg
Date: Thu, 31 Oct 2002 15:30:13 +0000
Message-ID: <B9E6FD05.A804%a.witney@sghms.ac.uk> (raw)
Has anyone tried fetching array slices through perl DBI/DBD:Pg?
If you send a statement like this
my $sth = $dbh->prepare("select cube[1:2][1][1] from test4");
Then the :1 gets treated as a placeholder and gets substituted. From the
trace
dbd_st_execute: statement = >select cube[1NULL][1][1] from test4<
ERROR: parser: parse error at or near "NULL" at character 14 error 7
recorded: ERROR: parser: parse error at or near "
NULL" at character 14
As no parameters have been bound to the placeholder then a NULL is
substituted and so it fails.
Anyone found a way around this?
Thanks
Adam
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: awitney@sghms.ac.uk
Subject: Re: Arrays and DBD:Pg
In-Reply-To: <B9E6FD05.A804%a.witney@sghms.ac.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox