Skip to content

Commit e6d2c59

Browse files
committed
Fixed a bug when ORA-03120 is thrown for a long string in a plsql function in Oracle Database 12.1
1 parent c7c495b commit e6d2c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/thin/protocol/messages/withData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ class MessageWithData extends Message {
721721
this.writeBindParamsColumn(buf, variable, variable.values[i]);
722722
}
723723
} else {
724-
if (variable.maxSize > buf.caps.maxStringSize) {
724+
if ((!this.statement.isPlSql) && variable.maxSize > buf.caps.maxStringSize) {
725725
foundLong = true;
726726
} else {
727727
this.writeBindParamsColumn(buf, variable,

0 commit comments

Comments
 (0)