Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sonia Zorba
vollt
Commits
86b4815e
Commit
86b4815e
authored
Mar 30, 2021
by
Sonia Zorba
Browse files
Added support for arraysize '*'
parent
5fa3dcd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tap/db/JDBCConnection.java
View file @
86b4815e
...
...
@@ -1384,8 +1384,21 @@ public class JDBCConnection implements DBConnection {
ucd
=
rs
.
getString
(
5
),
utype
=
rs
.
getString
(
6
),
datatype
=
rs
.
getString
(
7
),
dbName
=
(
hasDBName
?
(
hasColumnIndex
?
rs
.
getString
(
13
)
:
rs
.
getString
(
12
))
:
null
);
int
size
=
rs
.
getInt
(
8
),
colIndex
=
(
hasColumnIndex
?
(
rs
.
getObject
(
12
)
==
null
?
-
1
:
rs
.
getInt
(
12
))
:
-
1
);
int
size
=
0
;
if
(
hasArraysize
)
{
String
arraySize
=
rs
.
getString
(
8
);
if
(!
rs
.
wasNull
())
{
arraySize
=
arraySize
.
replace
(
"*"
,
""
);
if
(
arraySize
.
isEmpty
())
{
size
=
Integer
.
MAX_VALUE
;
}
else
{
size
=
Integer
.
parseInt
(
arraySize
);
}
}
}
else
{
size
=
rs
.
getInt
(
8
);
}
int
colIndex
=
(
hasColumnIndex
?
(
rs
.
getObject
(
12
)
==
null
?
-
1
:
rs
.
getInt
(
12
))
:
-
1
);
boolean
principal
=
toBoolean
(
rs
.
getObject
(
9
)),
indexed
=
toBoolean
(
rs
.
getObject
(
10
)),
std
=
toBoolean
(
rs
.
getObject
(
11
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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