From: | Heikki Linnakangas <heikki(at)enterprisedb(dot)com> |
---|---|
To: | George Woodman <georgew(at)computerspecialists(dot)co(dot)za> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #3732: Select returns 0 rows for varchar field |
Date: | 2007-11-09 11:41:38 |
Message-ID: | 47344772.1080601@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
George Woodman wrote:
> I created a table with the following specs.
> CREATE TABLE user_control
> (
> uci character varying(10) NOT NULL,
> ucname character varying(20),
> ucpwd character varying(10),
> ucrole character varying(20),
> CONSTRAINT user_control_pkey PRIMARY KEY (uci)
> )
> WITH (OIDS=FALSE);
> ALTER TABLE user_control OWNER TO postgres;
> GRANT ALL ON TABLE user_control TO postgres;
>
> I have 2 records with the following details:
> george,George,george,developer
> 1234567890,Temp,0,developer
> When I try to retrieve this record with the following statement from a
> ASP.Net (VB) app I get no rows returned.
> Select * from user_control where uci = 'george'
> However this statement works.
> Select * from user_control where uci = '1234567890'
Works for me. Make sure there's no trailing spaces when you insert the data.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Ben Leslie | 2007-11-09 13:20:16 | BUG #3735: Can't create xml-stylesheet processing instruction |
Previous Message | Ben Leslie | 2007-11-09 11:31:29 | BUG #3734: Invalid XML schema output. |