Talk About Network

Google




Play Stock Market Games
Fantasy Stock Picking Contest

Data Bases > Pgsql Bugs > BUG #4083: Retu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3673 of 3967
Post > Topic >>

BUG #4083: Return type of MAX and MIN of a VARCHAR column is TEXT

by pgsql-001@[EMAIL PROTECTED] ("Pedro Gimeno") Apr 1, 2008 at 04:39 PM

The following bug has been logged online:

Bug reference:      4083
Logged by:          Pedro Gimeno
Email address:      pgsql-001@[EMAIL PROTECTED]
 version: 8.2.5
Operating system:   Irrelevant
Description:        Return type of MAX and MIN of a VARCHAR column is TEXT
Details: 

Example:

CREATE TABLE a (x VARCHAR(40));

INSERT INTO a (x) VALUES ("blah");

SELECT MAX(x),MIN(x) FROM a;

The last query's return types are both TEXT, which in Zeos are not treated
in the same way as varchar.

Since the queries are designed to work with multiple servers, the only
workaround we've found so far is to create aggregate functions
MAX(varchar)
and MIN(varchar) that return varchar.

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 3 Posts in Topic:
BUG #4083: Return type of MAX and MIN of a VARCHAR column is TEX
pgsql-001@[EMAIL PROTECTE  2008-04-01 16:39:16 
Re: BUG #4083: Return type of MAX and MIN of a VARCHAR column is
tgl@[EMAIL PROTECTED] (T  2008-04-01 14:09:59 
Re: BUG #4083: Return type of MAX and MIN of a VARCHAR column is
peter_e@[EMAIL PROTECTED]  2008-04-02 09:07:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Aug 8 12:34:36 CDT 2008.