Skip to content

Commit

Permalink
Fix MDEV-13503 Modified: storage/connect/jdbconn.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Buggynours committed Aug 13, 2017
1 parent 11ce35e commit 4d5844d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions storage/connect/jdbconn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,13 @@ int TranslateJDBCType(int stp, char *tn, int prec, int& len, char& v)
int type;

switch (stp) {
case -1: // LONGVARCHAR
case -16: // LONGNVARCHAR (unicode)
case -1: // LONGVARCHAR, TEXT
case -16: // LONGNVARCHAR, NTEXT (unicode)
if (GetTypeConv() != TPC_YES)
return TYPE_ERROR;
else
len = MY_MIN(abs(len), GetConvSize());
// Pass through
case 12: // VARCHAR
case -9: // NVARCHAR (unicode)
v = 'V';
Expand Down Expand Up @@ -803,9 +804,10 @@ void JDBConn::SetColumnValue(int rank, PSZ name, PVAL val)
switch (ctyp) {
case 12: // VARCHAR
case -9: // NVARCHAR
case -1: // LONGVARCHAR
case -1: // LONGVARCHAR, TEXT
case 1: // CHAR
case -15: // NCHAR
case -16: // LONGNVARCHAR, NTEXT
case 3: // DECIMAL
case -8: // ROWID
if (jb && ctyp != 3)
Expand Down

0 comments on commit 4d5844d

Please sign in to comment.