~ubuntu-branches/ubuntu/utopic/calendarserver/utopic

« back to all changes in this revision

Viewing changes to lib-patches/cx_Oracle/bytes-per-nclob-character.patch

  • Committer: Package Import Robot
  • Author(s): Rahul Amaram
  • Date: 2012-05-29 18:12:12 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120529181212-mxjdfncopy6vou0f
Tags: 3.2+dfsg-1
* New upstream release
* Moved from using cdbs to dh sequencer
* Modified calenderserver init.d script based on /etc/init.d/skeleton script
* Removed ldapdirectory.patch as the OpenLDAP directory service has been 
  merged upstream
* Moved package to section "net" as calendarserver is more service than 
  library (Closes: #665859)
* Changed Architecture of calendarserver package to any as the package
  now includes compiled architecture dependent Python extensions
* Unowned files are no longer left on the system upon purging
  (Closes: #668731)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: ExternalLobVar.c
 
2
===================================================================
 
3
--- ExternalLobVar.c    (revision 355)
 
4
+++ ExternalLobVar.c    (working copy)
 
5
@@ -259,10 +259,9 @@
 
6
             amount = 1;
 
7
     }
 
8
     length = amount;
 
9
-    if (var->lobVar->type == &vt_CLOB)
 
10
+    if ((var->lobVar->type == &vt_CLOB) ||
 
11
+        (var->lobVar->type == &vt_NCLOB))
 
12
         bufferSize = amount * var->lobVar->environment->maxBytesPerCharacter;
 
13
-    else if (var->lobVar->type == &vt_NCLOB)
 
14
-        bufferSize = amount * 2;
 
15
     else bufferSize = amount;
 
16
 
 
17
     // create a string for retrieving the value