We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fcce6e commit 6f53c30Copy full SHA for 6f53c30
src/oracledb/impl/thin/var.pyx
@@ -1,5 +1,5 @@
1
#------------------------------------------------------------------------------
2
-# Copyright (c) 2020, 2024, Oracle and/or its affiliates.
+# Copyright (c) 2020, 2025, Oracle and/or its affiliates.
3
#
4
# This software is dual-licensed to you under the Universal Permissive License
5
# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
@@ -73,10 +73,7 @@ cdef class ThinVarImpl(BaseVarImpl):
73
if value is not None \
74
and not isinstance(value, (PY_TYPE_LOB,
75
PY_TYPE_ASYNC_LOB)):
76
- lob = conn.createlob(metadata.dbtype)
77
- if value:
78
- lob.write(value)
79
- self._values[idx] = lob
+ self._values[idx] = conn.createlob(metadata.dbtype, value)
80
81
# bind by name
82
if name is not None:
0 commit comments