[CalendarServer-changes] [7527] CalendarServer/trunk/lib-patches

source_changes at macosforge.org source_changes at macosforge.org
Wed May 25 17:16:15 PDT 2011


Revision: 7527
          http://trac.macosforge.org/projects/calendarserver/changeset/7527
Author:   glyph at apple.com
Date:     2011-05-25 17:16:14 -0700 (Wed, 25 May 2011)
Log Message:
-----------
NCLOB buffers are also potentially variable-width, so size them appropriately.

Added Paths:
-----------
    CalendarServer/trunk/lib-patches/cx_Oracle/
    CalendarServer/trunk/lib-patches/cx_Oracle/bytes-per-nclob-character.patch

Added: CalendarServer/trunk/lib-patches/cx_Oracle/bytes-per-nclob-character.patch
===================================================================
--- CalendarServer/trunk/lib-patches/cx_Oracle/bytes-per-nclob-character.patch	                        (rev 0)
+++ CalendarServer/trunk/lib-patches/cx_Oracle/bytes-per-nclob-character.patch	2011-05-26 00:16:14 UTC (rev 7527)
@@ -0,0 +1,17 @@
+Index: ExternalLobVar.c
+===================================================================
+--- ExternalLobVar.c	(revision 355)
++++ ExternalLobVar.c	(working copy)
+@@ -259,10 +259,9 @@
+             amount = 1;
+     }
+     length = amount;
+-    if (var->lobVar->type == &vt_CLOB)
++    if ((var->lobVar->type == &vt_CLOB) ||
++        (var->lobVar->type == &vt_NCLOB))
+         bufferSize = amount * var->lobVar->environment->maxBytesPerCharacter;
+-    else if (var->lobVar->type == &vt_NCLOB)
+-        bufferSize = amount * 2;
+     else bufferSize = amount;
+ 
+     // create a string for retrieving the value
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110525/762550ad/attachment.html>


More information about the calendarserver-changes mailing list