Re: [HACKERS] "It'd be better if there were not an implicit cast from int8 to text..."

2007-08-18 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > Hm, I suppose this "kluge" in gram.y for "substr_list" isn't necessary any > more? It's still necessary, because if you write select substring('1234' for '3'); you should get "123", but what you will get without the cast is "3" because the pref

[HACKERS] "It'd be better if there were not an implicit cast from int8 to text..."

2007-08-18 Thread Gregory Stark
Hm, I suppose this "kluge" in gram.y for "substr_list" isn't necessary any more? Don't really see a downside to leaving it, just thought I would mention it since I noticed the comment is outdated. | a_expr substr_for { /* * Since there are no cases where this syntax a