Return-Path: owner-postman Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with SMTP id OAA13499 for postgres-redist; Sat, 5 Aug 1995 14:33:12 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199508052133.OAA13499@nobozo.CS.Berkeley.EDU> X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from mail.one.net (root@mail.one.net [198.30.92.102]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with ESMTP id OAA13501 for ; Sat, 5 Aug 1995 14:33:10 -0700 Received: from ginger.one.net (ginger.island.one.net [198.30.92.108]) by mail.one.net (8.6.12/8.6.9) with ESMTP id RAA26236 for ; Sat, 5 Aug 1995 17:33:08 -0400 Received: (from dsk1@localhost) by ginger.one.net (8.6.11/8.6.11) id QAA08972; Sat, 5 Aug 1995 16:01:27 -0400 Date: Sat, 5 Aug 1995 16:01:27 -0400 (EDT) From: "David S. Kenzik" To: postgres@postgres.Berkeley.EDU Subject: Problem using external SQL calls. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-To: postgres-redist@postgres.Berkeley.EDU Resent-Date: Sat, 05 Aug 95 14:33:11 -0700 Resent-XMts: smtp 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/