pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
php and Postgres 7.2
2+ messages / 2 participants
[nested] [flat]

* php and Postgres 7.2
@ 2002-02-13 07:23 rudi <rudi@oasis.net.au>
  2002-02-13 09:16 ` Re: php and Postgres 7.2 Andrew McMillan <andrew@catalyst.net.nz>
  0 siblings, 1 reply; 2+ messages in thread

From: rudi @ 2002-02-13 07:23 UTC (permalink / raw)
  To: pgsql-php

Hello friends,

Just a quick email to let you know of my experience upgrading on php apps.
using Postgres 7.1.3 to 7.2

The only problem I found was with phorum ( www.phorum.org )

I tried the last 2 releases and both would throw this error when creating a new forum :

Could not add forum to the main table (forums).
Database error: ERROR: value too long for type character(1) .

I'm not sure why this is occurring but the solution was to run everything on 7.2
except for this forum application which remains on another box using 7.1.3

I don't know if its :
a) the phorum code
b) php
c) Postgres 7.2

But I though you may be interested so I've posted it anyway.
Thanks for your time
Kind regards 
Rudi.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: php and Postgres 7.2
  2002-02-13 07:23 php and Postgres 7.2 rudi <rudi@oasis.net.au>
@ 2002-02-13 09:16 ` Andrew McMillan <andrew@catalyst.net.nz>
  0 siblings, 0 replies; 2+ messages in thread

From: Andrew McMillan @ 2002-02-13 09:16 UTC (permalink / raw)
  To: rudi <rudi@oasis.net.au>; +Cc: pgsql-php

On Wed, 2002-02-13 at 20:23, rudi wrote:
> Hello friends,
> 
> Just a quick email to let you know of my experience upgrading on php apps.
> using Postgres 7.1.3 to 7.2
> 
> The only problem I found was with phorum ( www.phorum.org )
> 
> I tried the last 2 releases and both would throw this error when creating a new forum :
> 
> Could not add forum to the main table (forums).
> Database error: ERROR: value too long for type character(1) .
> 
> I'm not sure why this is occurring but the solution was to run everything on 7.2
> except for this forum application which remains on another box using 7.1.3
> 
> I don't know if its :
> a) the phorum code
> b) php
> c) Postgres 7.2
> 
> But I though you may be interested so I've posted it anyway.

Someone will correct me if I'm wrong, but 7.1 would silently truncate a
value and insert it into the CHAR(1) field.  I think what 7.2 is doing
is throwing an error when you try to insert a value like 'fred' into
such a field where 7.1 would have just put 'f' into the char(1) field.

It is probably a bug in phorum for it to be trying to put
multi-character values into a char(1) field, so I would tend to look
there first.

Regards,
					Andrew.
-- 
--------------------------------------------------------------------
Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/        PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201    MOB: +64(21)635-694    OFFICE: +64(4)499-2267
       Are you enrolled at http://schoolreunions.co.nz/ yet?




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-02-13 09:16 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-13 07:23 php and Postgres 7.2 rudi <rudi@oasis.net.au>
2002-02-13 09:16 ` Andrew McMillan <andrew@catalyst.net.nz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox