Home > Archive > Oracle PERL DBD > January 2006 > [svn:dbd-oracle] r2427 - dbd-oracle/trunk









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [svn:dbd-oracle] r2427 - dbd-oracle/trunk
timbo@cvs.perl.org

2006-01-18, 7:24 am

Author: timbo
Date: Wed Jan 18 02:45:02 2006
New Revision: 2427

Modified:
dbd-oracle/trunk/oci8.c
Log:
No need to *4 buffer size if both client and server are utf8 thanks to Honza Pazdziora.


Modified: dbd-oracle/trunk/oci8.c
====================
====================
====================
==================
--- dbd-oracle/trunk/oci8.c (original)
+++ dbd-oracle/trunk/oci8.c Wed Jan 18 02:45:02 2006
@@ -1317,9 +1317,10 @@ dbd_describe(SV *h, imp_sth_t *imp_sth)
avg_width = fbh->dbsize / 2;
/* FALLTHRU */
case 96: /* CHAR */
- fbh->disize = fbh->dbsize;
- if (CSFORM_IMPLIES_UTF8
(fbh->csform))
+ if ( CSFORM_IMPLIES_UTF8(
fbh->csform) && !CS_IS_UTF8(fbh->csid) )
fbh->disize = fbh->dbsize * 4;
+ else
+ fbh->disize = fbh->dbsize;
fbh->prec = fbh->disize;
break;
case 23: /* RAW */
@@ -1344,7 +1345,7 @@ dbd_describe(SV *h, imp_sth_t *imp_sth)
break;

case 8: /* LONG */
- if (CSFORM_IMPLIES_UTF8
(fbh->csform))
+ if ( CSFORM_IMPLIES_UTF8(
fbh->csform) && !CS_IS_UTF8(fbh->csid) )
fbh->disize = long_readlen * 4;
else
fbh->disize = long_readlen;
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com