I have a complex php form which initializes rows in 4 tables. In each
case I have employed prepared statements. In the first 3 everything
works beautifully with as many as 45 columns involved.
The 4th table (badtest) is driving me around the bend. Simplified, the
schema would be:
testcode CHAR not null primary key
And the script is:
$query = "INSERT INTO badtest(testcode,testrank,testraw) VALUES($1,$2,
$result = pg_prepare($pg,"initbadtest",$query) or die('as usual');
The only difference is the presence of arrays.
Inclusion of this script stops the firm from being diplayed, but there
are no logged items either for the system errorlog or postgresql
So 'die' does its job, so to speak, but what am I doing wrong here? The
documentation for 8.3 section 14 mentions this array syntax is similar
to 'C'. Yes, it is, but that is small comfort. I also tried the
ARRAY[0.0.0.0.0.0] style but the same problem - no display. Remove the
code and the script 'does it thing'.
Has to be simple, but I can no longer see for looking.
pgsql-novice by date
|Next:||From: Vyacheslav Kalinin||Date: 2008-03-13 01:34:20|
|Subject: Re: array syntax in pg_execute call|
|Previous:||From: Tom Lane||Date: 2008-03-12 21:12:15|
|Subject: Re: little bug in 8.3? |