Long strings, short varchars

From: "Sasa Markovic" <saxon(at)eunet(dot)yu>
To: <pgsql-bugs(at)postgresql(dot)org>
Subject: Long strings, short varchars
Date: 2002-08-14 18:41:29
Message-ID: IHEFJCICNMFNCIKJAKIKEELACBAA.saxon@eunet.yu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

In PostgreSQL 7.1, this code goes smoothly.

create table test (name varchar(5));
insert into test values('abracadabra');

Long input string was silently trimmed. But in PG7.2 an error is triggered.

OK, I suppose this is just a new feature, not a bug but. But...

...Is it possible to restore the old behaviour?

--
Best regards,
Sasa Markovic, Development Team Leader
DataGate Belgrade - http://www.datagate.co.yu

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2002-08-14 18:49:20 Re: mistakes in postgresql-snapshots (7.3)
Previous Message Tom Lane 2002-08-14 15:49:16 Re: Bug #738: "order by" returning different results in 7.2 and 7.21

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthew T. O'Connor 2002-08-14 18:47:45 More CVS Problems
Previous Message Rod Taylor 2002-08-14 18:40:40 Re: Open 7.3 items