Re: [GENERAL] problems compiling scripts.I'm near suicide

From: Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il>
To: ximo(dot)domenech(at)ival(dot)es, pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] problems compiling scripts.I'm near suicide
Date: 1999-08-04 09:57:15
Message-ID: l03130301b3cdbe835134@[147.233.159.109]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At 22:57 +0300 on 03/08/1999, Ximo Domenech wrote:

> Internal Server Error
> Premature end of script headers: /export/home/httpd/cgi-bin/pruebacgi
>
> Connection to database 'xyz' OK
> DECLARE CURSOR command failed
> [error] [client 127.0.0.1] Premature end of script headers

I would say to check two things first:

1) That your first two lines of output are "Content-type: text/html" in
the first line, followed by an empty line. If at all possible,
output these two lines before even opening the database connection.

2) That your DECLARE CURSOR command is within a transaction block.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Herouth Maoz 1999-08-04 10:03:22 Re: [GENERAL] Data type recommendation
Previous Message Thomas Lim 1999-08-04 08:02:22 Data type recommendation