Re: Indexes in PL/SQL

From: Tony Holmes <tony(at)crosswinds(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Indexes in PL/SQL
Date: 2003-05-30 15:30:35
Message-ID: 20030530113035.A32391@crosswinds.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On +May 30, Tom Lane wrote:
>
> SELECT uid INTO _uid FROM user_main WHERE username = _user::varchar;
>
> 7.4 will be more forgiving about text-versus-varchar discrepancies, but
> you can still get burnt by this problem on most other cross-datatype
> cases --- including char(n) versus varchar(n). Integer versus bigint
> is another common gotcha for newbies.

Thanks! Got me and that fixed it.

--
Tony Holmes

Founder and Senior Systems Architect
Crosswinds Internet Communications Inc.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2003-05-30 15:55:59 Re: PHP vs Cold Fusion vs Zope
Previous Message Tom Lane 2003-05-30 15:16:45 Re: Indexes in PL/SQL