Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
60fa113f
Commit
60fa113f
authored
Aug 12, 2017
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MDEV-13503 Modified: storage/connect/jdbconn.cpp
parent
efc8a5b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
storage/connect/jdbconn.cpp
storage/connect/jdbconn.cpp
+5
-3
No files found.
storage/connect/jdbconn.cpp
View file @
60fa113f
...
...
@@ -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'
;
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment