File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
# ------------------------------------------------------------------------------
2
- # Copyright (c) 2020, 2024 , Oracle and/or its affiliates.
2
+ # Copyright (c) 2020, 2025 , Oracle and/or its affiliates.
3
3
#
4
4
# This software is dual-licensed to you under the Universal Permissive License
5
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
73
if value is not None \
74
74
and not isinstance (value, (PY_TYPE_LOB,
75
75
PY_TYPE_ASYNC_LOB)):
76
- lob = conn.createlob(metadata.dbtype)
77
- if value:
78
- lob.write(value)
79
- self ._values[idx] = lob
76
+ self ._values[idx] = conn.createlob(metadata.dbtype, value)
80
77
81
78
# bind by name
82
79
if name is not None :
You can’t perform that action at this time.
0 commit comments