Return-Path: owner-postman Delivery-Date: Tue, 03 May 94 22:32:00 -0700 Return-Path: owner-postman Received: from localhost (localhost [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id TAA11313 for postgres-redist; Tue, 3 May 1994 19:22:37 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199405040222.TAA11313@nobozo.CS.Berkeley.EDU> X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost didn't use HELO protocol Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from pollux.cs.uga.edu (pollux.cs.uga.edu [128.192.4.5]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id TAA11303 for ; Tue, 3 May 1994 19:22:34 -0700 From: perera@pollux.cs.uga.edu Received: by pollux.cs.uga.edu (4.1/25-eef) id AA21010; Tue, 3 May 94 22:22:29 EDT Message-Id: <9405040222.AA21010@pollux.cs.uga.edu> Subject: libpq question. To: postgres@postgres.Berkeley.EDU Date: Tue, 3 May 1994 22:22:28 -0400 (EDT) Content-Type: text Content-Length: 819 Resent-To: postgres-redist@postgres.Berkeley.EDU Resent-Date: Tue, 03 May 94 19:22:37 -0700 Resent-XMts: smtp Hi: I am having a problem with the mesg that I get back from PQexec. ... char *q1 = "define view toy ( sno = s.sno, city = s.city )"; char *q2 = "retrieve ( toy.all )"; char *response = NULL; response = (char *) PQexec(q1); /* response has CAPPEND 373920 */ response = (char *) PQexec(q2); /* response has CDEFINE */ response = (char *) PQexec(q2); /* response has Pblank */ ... Why is that the first time I do query q2 I get a CDEFINE and the next time I get a Pblank ? I thought that doing a retrieve gives a "Pblank" from PQexec. Am I doing something incorrectly here ? postgres version 4.1, on a SUN 690MP. Thanks, -- Niranjan -- _ /| \'o.O' Niranjan Perera, 415 GSRC Bldg,CS Dept | EMAIL: perera@cs.uga.edu =(_^_)= University Of Georgia, Athens GA30602. | PHONE: [+1] 706-548-5826 U =============================================================================== To add/remove yourself 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. ===============================================================================