Re: [BUGS] BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-07 Thread Farid Zidan
Craig, I know it's not what you want (Pg behaving how you expect out of the box) but creating implicit casts to the desired types will resolve your immediate issue. You still have to run some Pg-specific code, but it can be restricted to your DDL where there's (presumably) already plenty. My

Re: [BUGS] Re: BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-05 Thread Farid Zidan
see no technical analysis in your response. If you too busy to engage in logical debate, you should remove yourself from the bug list. Software is built on logical analysis. You are too busy, do not participate. Farid On 6/5/2010 4:16 PM, Dimitri Fontaine wrote: Farid Zidan writes: I am

Re: [BUGS] Re: BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-05 Thread Farid Zidan
ing literal being inserted into col2 whose data type is timestamp, perfectly safe. Farid On 6/5/2010 3:26 AM, Craig Ringer wrote: On 05/06/10 06:15, Farid Zidan wrote: insert into test_insert (col1, col2) select *distinct* 'b', '2010-04-30 00:00:00'

[BUGS] Re: BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-05 Thread Farid Zidan
keyword in step 1, 2 and conversion from string literal to timestamp value in step 3 There is no ambiguity or magic to happen. Obviously in PG case there is some design or fault somewhere in this use-case when distinct keyword is used and is processed in step 2, that's all. Farid On 6/4/2010 10:41

Re: [BUGS] Re: BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-05 Thread Farid Zidan
w, but that would be nice otherwise user will see a bunch of one-time errors and lose some ease of use but otherwise will not be too badly affected. Farid On 6/4/2010 9:42 PM, Kris Jurka wrote: On Fri, 4 Jun 2010, Farid Zidan wrote: Here is actual statements I am running and like I said

[BUGS] Re: BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-04 Thread Farid Zidan
Title: Signature Hello Kevin, I can't help but wonder why you resist using the standard syntax. I am using the standard syntax. Single quote in sql denotes a string. so '2010-04-30 00:00:00' is string literal. That's universal. Now you want me to use PG-specific timestamps and that's l

[BUGS] Re: BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-04 Thread Farid Zidan
PostreSQL is doing the first part (subquery with distinct clause correctly), but when it gets to use the resultset of the subquery in the insert it "forgets" how to convert '2010-04-30 00:00:00' to timestamp value (but forgets only when 'distinct' is used in the

Re: [BUGS] BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-04 Thread Farid Zidan
I am sure it can impact other developers projects and it would need to be addressed at some point in the future with a solution where it just work like it does in all the other DBMSs. Farid On 6/4/2010 1:36 PM, Kevin Grittner wrote: Farid Zidan wrote: can be elimin

Re: [BUGS] BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-04 Thread Farid Zidan
causing the error. Farid On 6/4/2010 12:52 PM, Kevin Grittner wrote: Farid Zidan wrote: If we were strictly complying with the SQL standard, Considering the statement works in all the 9 DBMS systems+ that I have tested so far as men

Re: [BUGS] BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-04 Thread Farid Zidan
that's what needs to be fixed to ensure PostgreSQL compatibility with SQL standard and interoperability with generic sql statements. best regards, Farid On 6/4/2010 11:57 AM, Kevin Grittner wrote: "Farid Zidan" wrote: insert into test_insert (col1, col2) select disti

[BUGS] BUG #5490: Using distinct for select list causes insert of timestamp string literal to fail

2010-06-04 Thread Farid Zidan
The following bug has been logged online: Bug reference: 5490 Logged by: Farid Zidan Email address: fa...@zidsoft.com PostgreSQL version: 8.4.1 Operating system: Windows XP 32-bit Description:Using distinct for select list causes insert of timestamp string literal to

[BUGS] BUG #1423: ODBC SQLTables SQL_ALL_CATALOGS and SQL_ALL_SCHEMAS options don't work

2005-01-20 Thread Farid Zidan
The following bug has been logged online: Bug reference: 1423 Logged by: Farid Zidan Email address: [EMAIL PROTECTED] PostgreSQL version: 8.0 Operating system: Windows 2000 Description:ODBC SQLTables SQL_ALL_CATALOGS and SQL_ALL_SCHEMAS options don't work De

[BUGS] BUG #1422: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset

2005-01-20 Thread Farid Zidan
The following bug has been logged online: Bug reference: 1422 Logged by: Farid Zidan Email address: [EMAIL PROTECTED] PostgreSQL version: 8.0 Operating system: Windows 2 Description:ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset Details: ::SQLTables( hstmt

[BUGS] BUG #1415: odbc driver SQLGetInfo SQL_CATALOG_TERM returns empty string

2005-01-20 Thread Farid Zidan
The following bug has been logged online: Bug reference: 1415 Logged by: Farid Zidan Email address: [EMAIL PROTECTED] PostgreSQL version: 8.0 Operating system: Windows 2000 Description:odbc driver SQLGetInfo SQL_CATALOG_TERM returns empty string Details: odbc