pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feed [ psqlodbc-Bugs-1000509 ] TextAsLongVarchar=0 don't work
6+ messages / 2 participants
[nested] [flat]
* [ psqlodbc-Bugs-1000509 ] TextAsLongVarchar=0 don't work
@ 2005-12-27 12:25 noreply@pgfoundry.org
0 siblings, 0 replies; 6+ messages in thread
From: noreply@pgfoundry.org @ 2005-12-27 12:25 UTC (permalink / raw)
To: noreply@pgfoundry.org
Bugs item #1000509, was opened at 27/12/2005 12:25
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000509&group_id=1000125
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: TextAsLongVarchar=0 don't work
Initial Comment:
select min(codi) from table123
return LongVarchar, also if I have specified TextAsLongVarchar=0. I need a varchar.
Thanks
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000509&group_id=1000125
^ permalink raw reply [nested|flat] 6+ messages in thread
* [ psqlodbc-Bugs-1000509 ] TextAsLongVarchar=0 don't work
@ 2005-12-28 19:29 noreply@pgfoundry.org
0 siblings, 0 replies; 6+ messages in thread
From: noreply@pgfoundry.org @ 2005-12-28 19:29 UTC (permalink / raw)
To: noreply@pgfoundry.org
Bugs item #1000509, was opened at 2005-12-27 13:25
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000509&group_id=1000125
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: TextAsLongVarchar=0 don't work
Initial Comment:
select min(codi) from table123
return LongVarchar, also if I have specified TextAsLongVarchar=0. I need a varchar.
Thanks
----------------------------------------------------------------------
>Comment By: Ludek Finstrle (luf)
Date: 2005-12-28 20:29
Message:
I see no problem at first sight. Please could you write which version of psqlodbc do you use?
I need your mylog output to see what's going wrong.
What do you mean with "return LongVarchar"?
What column type is codi?
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000509&group_id=1000125
^ permalink raw reply [nested|flat] 6+ messages in thread
* [ psqlodbc-Bugs-1000509 ] TextAsLongVarchar=0 don't work
@ 2006-01-09 19:35 noreply@pgfoundry.org
0 siblings, 1 reply; 6+ messages in thread
From: noreply@pgfoundry.org @ 2006-01-09 19:35 UTC (permalink / raw)
To: noreply@pgfoundry.org
Bugs item #1000509, was opened at 2005-12-27 13:25
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000509&group_id=1000125
Category: None
Group: None
Status: Open
>Resolution: Accepted
Priority: 3
Submitted By: Nobody (None)
Assigned to: Ludek Finstrle (luf)
Summary: TextAsLongVarchar=0 don't work
Initial Comment:
select min(codi) from table123
return LongVarchar, also if I have specified TextAsLongVarchar=0. I need a varchar.
Thanks
----------------------------------------------------------------------
>Comment By: Ludek Finstrle (luf)
Date: 2006-01-09 20:35
Message:
We communicate more privately. The reporter show me the bug. I hope I find the solution. Patch is attached.
The driver is returning varchar now but it returns length 8190 instead of max varchar size.
Please try and report.
----------------------------------------------------------------------
Comment By: Ludek Finstrle (luf)
Date: 2006-01-08 12:46
Message:
typ = 25 is text. This returns backend. We can't change it here.
Why you post so small log entry? I don't see the right place where does yours expectance differ from reality. I don't see yours settings ... How do you get the data?
Please include whole log or send it to me.
----------------------------------------------------------------------
Comment By: Nobody (None)
Date: 2006-01-02 12:57
Message:
CODI is varchar(4)
driver versione 8.01.01.06
[4076]LIBPQ_execute_query: query = select min(codi), max(codi_provv_tipo) from bitbprov
[4076]LIBPQ_execute_query: recent_processed_row_count = 1
[4076]LIBPQ_execute_query: rest types ...
[4076]CC_mapping: entering ...
[4076]CC_mapping: rows = 1, columns = 2
[4076]CC_mapping: column = 0
[4076]CC_mapping: set field info: name = min, typ = 25, typlen = 8190, attypmod = -1
typ = 25 probably is long varchar
I need will be varchar and typlen=254.
----------------------------------------------------------------------
Comment By: Ludek Finstrle (luf)
Date: 2005-12-28 20:29
Message:
I see no problem at first sight. Please could you write which version of psqlodbc do you use?
I need your mylog output to see what's going wrong.
What do you mean with "return LongVarchar"?
What column type is codi?
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000509&group_id=1000125
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: [ psqlodbc-Bugs-1000509 ] TextAsLongVarchar=0 don't work
@ 2006-01-09 19:57 Ludek Finstrle <luf@pzkagis.cz>
parent: noreply@pgfoundry.org
0 siblings, 0 replies; 6+ messages in thread
From: Ludek Finstrle @ 2006-01-09 19:57 UTC (permalink / raw)
To: pgsql-odbc
> Summary: TextAsLongVarchar=0 don't work
>
> Initial Comment:
> select min(codi) from table123
>
> return LongVarchar, also if I have specified TextAsLongVarchar=0. I need
> a varchar.
>
> Thanks
>
> ----------------------------------------------------------------------
>
> >Comment By: Ludek Finstrle (luf)
> Date: 2006-01-09 20:35
>
> Message:
> We communicate more privately. The reporter show me the bug. I hope
> I find the solution. Patch is attached.
>
> The driver is returning varchar now but it returns length 8190 instead
> of max varchar size.
I repost it with patch attached for mail archive.
Please review and comment
Luf
Attachments:
psqlodbc-text_as_longvarchar.diff (text/plain, 823B) download
diff -c psqlodbc.orig\connection.c psqlodbc\connection.c
*** psqlodbc.orig\connection.c Sun Jan 08 12:12:01 2006
--- psqlodbc\connection.c Mon Jan 09 21:23:11 2006
***************
*** 1968,1975 ****
break;
default:
! typlen = ci->drivers.max_longvarchar_size;
! }
}
mylog("%s: set field info: name = %s, typ = %i, typlen = %i, attypmod = %i\n", func, PQfname(pgres,i), typid, (Int2)typlen, atttypmod);
--- 1968,1975 ----
break;
default:
! typlen = ( ci->drivers.text_as_longvarchar ? ci->drivers.max_longvarchar_size : ci->drivers.max_varchar_size );
! }
}
mylog("%s: set field info: name = %s, typ = %i, typlen = %i, attypmod = %i\n", func, PQfname(pgres,i), typid, (Int2)typlen, atttypmod);
^ permalink raw reply [nested|flat] 6+ messages in thread
* [ psqlodbc-Bugs-1000509 ] TextAsLongVarchar=0 don't work
@ 2006-01-10 16:32 noreply@pgfoundry.org
0 siblings, 0 replies; 6+ messages in thread
From: noreply@pgfoundry.org @ 2006-01-10 16:32 UTC (permalink / raw)
To: noreply@pgfoundry.org
Bugs item #1000509, was opened at 2005-12-27 13:25
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000509&group_id=1000125
Category: None
Group: None
Status: Open
Resolution: Accepted
Priority: 3
Submitted By: Nobody (None)
Assigned to: Ludek Finstrle (luf)
Summary: TextAsLongVarchar=0 don't work
Initial Comment:
select min(codi) from table123
return LongVarchar, also if I have specified TextAsLongVarchar=0. I need a varchar.
Thanks
----------------------------------------------------------------------
>Comment By: Ludek Finstrle (luf)
Date: 2006-01-10 17:32
Message:
I attach Windows zipped DLLs. DLLs have to replace existing psqlODBC installation (in case additional DLLs and registry settings).
Please try and report
----------------------------------------------------------------------
Comment By: Ludek Finstrle (luf)
Date: 2006-01-09 20:35
Message:
We communicate more privately. The reporter show me the bug. I hope I find the solution. Patch is attached.
The driver is returning varchar now but it returns length 8190 instead of max varchar size.
Please try and report.
----------------------------------------------------------------------
Comment By: Ludek Finstrle (luf)
Date: 2006-01-08 12:46
Message:
typ = 25 is text. This returns backend. We can't change it here.
Why you post so small log entry? I don't see the right place where does yours expectance differ from reality. I don't see yours settings ... How do you get the data?
Please include whole log or send it to me.
----------------------------------------------------------------------
Comment By: Nobody (None)
Date: 2006-01-02 12:57
Message:
CODI is varchar(4)
driver versione 8.01.01.06
[4076]LIBPQ_execute_query: query = select min(codi), max(codi_provv_tipo) from bitbprov
[4076]LIBPQ_execute_query: recent_processed_row_count = 1
[4076]LIBPQ_execute_query: rest types ...
[4076]CC_mapping: entering ...
[4076]CC_mapping: rows = 1, columns = 2
[4076]CC_mapping: column = 0
[4076]CC_mapping: set field info: name = min, typ = 25, typlen = 8190, attypmod = -1
typ = 25 probably is long varchar
I need will be varchar and typlen=254.
----------------------------------------------------------------------
Comment By: Ludek Finstrle (luf)
Date: 2005-12-28 20:29
Message:
I see no problem at first sight. Please could you write which version of psqlodbc do you use?
I need your mylog output to see what's going wrong.
What do you mean with "return LongVarchar"?
What column type is codi?
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000509&group_id=1000125
^ permalink raw reply [nested|flat] 6+ messages in thread
* [ psqlodbc-Bugs-1000509 ] TextAsLongVarchar=0 don't work
@ 2006-01-10 22:10 noreply@pgfoundry.org
0 siblings, 0 replies; 6+ messages in thread
From: noreply@pgfoundry.org @ 2006-01-10 22:10 UTC (permalink / raw)
To: noreply@pgfoundry.org
Bugs item #1000509, was opened at 2005-12-27 13:25
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000509&group_id=1000125
Category: None
Group: None
>Status: Closed
Resolution: Accepted
Priority: 3
Submitted By: Nobody (None)
Assigned to: Ludek Finstrle (luf)
Summary: TextAsLongVarchar=0 don't work
Initial Comment:
select min(codi) from table123
return LongVarchar, also if I have specified TextAsLongVarchar=0. I need a varchar.
Thanks
----------------------------------------------------------------------
Comment By: Ludek Finstrle (luf)
Date: 2006-01-10 17:32
Message:
I attach Windows zipped DLLs. DLLs have to replace existing psqlODBC installation (in case additional DLLs and registry settings).
Please try and report
----------------------------------------------------------------------
Comment By: Ludek Finstrle (luf)
Date: 2006-01-09 20:35
Message:
We communicate more privately. The reporter show me the bug. I hope I find the solution. Patch is attached.
The driver is returning varchar now but it returns length 8190 instead of max varchar size.
Please try and report.
----------------------------------------------------------------------
Comment By: Ludek Finstrle (luf)
Date: 2006-01-08 12:46
Message:
typ = 25 is text. This returns backend. We can't change it here.
Why you post so small log entry? I don't see the right place where does yours expectance differ from reality. I don't see yours settings ... How do you get the data?
Please include whole log or send it to me.
----------------------------------------------------------------------
Comment By: Nobody (None)
Date: 2006-01-02 12:57
Message:
CODI is varchar(4)
driver versione 8.01.01.06
[4076]LIBPQ_execute_query: query = select min(codi), max(codi_provv_tipo) from bitbprov
[4076]LIBPQ_execute_query: recent_processed_row_count = 1
[4076]LIBPQ_execute_query: rest types ...
[4076]CC_mapping: entering ...
[4076]CC_mapping: rows = 1, columns = 2
[4076]CC_mapping: column = 0
[4076]CC_mapping: set field info: name = min, typ = 25, typlen = 8190, attypmod = -1
typ = 25 probably is long varchar
I need will be varchar and typlen=254.
----------------------------------------------------------------------
Comment By: Ludek Finstrle (luf)
Date: 2005-12-28 20:29
Message:
I see no problem at first sight. Please could you write which version of psqlodbc do you use?
I need your mylog output to see what's going wrong.
What do you mean with "return LongVarchar"?
What column type is codi?
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000509&group_id=1000125
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2006-01-10 22:10 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-12-27 12:25 [ psqlodbc-Bugs-1000509 ] TextAsLongVarchar=0 don't work noreply@pgfoundry.org
2005-12-28 19:29 [ psqlodbc-Bugs-1000509 ] TextAsLongVarchar=0 don't work noreply@pgfoundry.org
2006-01-09 19:35 [ psqlodbc-Bugs-1000509 ] TextAsLongVarchar=0 don't work noreply@pgfoundry.org
2006-01-09 19:57 ` Ludek Finstrle <luf@pzkagis.cz>
2006-01-10 16:32 [ psqlodbc-Bugs-1000509 ] TextAsLongVarchar=0 don't work noreply@pgfoundry.org
2006-01-10 22:10 [ psqlodbc-Bugs-1000509 ] TextAsLongVarchar=0 don't work noreply@pgfoundry.org
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox