agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: David S. Kenzik <dsk1@one.net>
To: postgres@postgres.Berkeley.EDU
Subject: Problem using external SQL calls.
Date: Sat, 5 Aug 1995 16:01:27 -0400 (EDT)
Message-ID: <Pine.LNX.3.91.950805154954.3599L-100000@ginger.one.net> (raw)
I am using Postgre95 beta 0.02 along with PGperl5 in a Solaris 2.4
environment.
I have created a database called 'dbtest', set up a couple fields, and
entered 1 row of data.
Monitor output follows:
----------------------
bash$ monitor dbtest
Welcome to the POSTGRES95 terminal monitor
Go
* select * from person;
Query sent to backend is "select * from person;"
-----------------------------
| name | age |
-----------------------------
| dave | 10 |
-----------------------------
---------------------
I have a script written in perl 5 using PGpm that doesn't return any
value, except 'PGblank'. The code follows:
---------------------
#!/usr/bin/perl
use Pg;
$db="dbtest";
PQsetdb($db);
$query="select * from person";
$result=PQexec($query);
print "$result\n";
And the results:
bash$ ./dbtest2
Pblank
-----------------
Any insight would be greatly appreciated, as it's been a long couple of
days. :)
Regards,
.===========================================================================.
| David S. Kenzik - Project Director - OneNet Communications : dsk1@one.net |
+===========================================================================+
| Current Projects: finger projects@one.net WWW: http://www.one.net |
| Information: info@one.net Phone: (513) 326-6000 |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
reply
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: postgres@postgres.berkeley.edu
Cc: dsk1@one.net
Subject: Re: Problem using external SQL calls.
In-Reply-To: <Pine.LNX.3.91.950805154954.3599L-100000@ginger.one.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox