Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

[svn:dbd-oracle] r2372 - dbd-oracle/trunk
Author: timbo
Date: Mon Jan  9 07:21:01 2006
New Revision: 2372

Modified:
dbd-oracle/trunk/Changes
dbd-oracle/trunk/oci8.c
Log:
Fixed truncation error on fetch into UTF8 charset thanks to Honza Pazdziora.


Modified: dbd-oracle/trunk/Changes
 ====================
 ====================
 ====================
================
==
--- dbd-oracle/trunk/Changes	(original)
+++ dbd-oracle/trunk/Changes	Mon Jan  9 07:21:01 2006
@@ -2,6 +2,7 @@

Fixed csform setting for Oracle 8.0.
Fixed csform setting for some UTF8 cases.
+  Fixed truncation error on fetch into UTF8 charset thanks to Honza Pazdzio
ra.
Fixed INTERVAL DAY TO SECOND thanks to Honza Pazdziora.
Fixed undef warnings when connecting with undef $user.
Fixed LOB streaming example thanks to Pablo Zorzoli.

Modified: dbd-oracle/trunk/oci8.c
 ====================
 ====================
 ====================
================
==
--- dbd-oracle/trunk/oci8.c	(original)
+++ dbd-oracle/trunk/oci8.c	Mon Jan  9 07:21:01 2006
@@ -1196,8 +1196,8 @@ dbd_describe(SV *h, imp_sth_t *imp_sth)
/* OCI_ATTR_CHAR_SIZE: like OCI_ATTR_DATA_SIZE but measured in chars	*/
 OCIAttrGet_parmdp(im
p_sth, fbh->parmdp, &fbh->len_char_size, 0, OCI_ATTR_CHA
R_SIZE, status);
#endif
-#ifdef OCI_ATTR_CHARSET_ID
fbh->csid = 0; fbh->csform = 0; /* just to be sure */
+#ifdef OCI_ATTR_CHARSET_ID
 OCIAttrGet_parmdp(im
p_sth, fbh->parmdp, &fbh->csid,   0, OCI_ATTR_CHARSET_ID
,   status);
 OCIAttrGet_parmdp(im
p_sth, fbh->parmdp, &fbh->csform, 0, OCI_ATTR_CHARSET_FO
RM, status);
#endif
@@ -1223,7 +1223,7 @@ dbd_describe(SV *h, imp_sth_t *imp_sth)
/* FALLTHRU */
case  96:				/* CHAR		*/
fbh->disize = fbh->dbsize;
-		if (CS_IS_UTF8(fbh->csid))
+		if  (CSFORM_IMPLIES_UTF8
(fbh->csform))
fbh->disize = fbh->dbsize * 4;
fbh->prec   = fbh->disize;
break;
@@ -1249,7 +1249,7 @@ dbd_describe(SV *h, imp_sth_t *imp_sth)
break;

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

Report this thread to moderator Post Follow-up to this message
Old Post
timbo@cvs.perl.org
01-09-06 04:25 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Oracle PERL DBD archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 04:05 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006