Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tap_schema_manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marco Molinaro
tap_schema_manager
Commits
ac6d32dc
There was a problem fetching the pipeline summary.
Commit
ac6d32dc
authored
7 years ago
by
Sonia Zorba
Browse files
Options
Downloads
Patches
Plain Diff
Arraysize bugfix
parent
b3db4da7
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
TASMAN-core/src/main/java/it/inaf/ia2/tsm/datalayer/ADQL.java
+11
-1
11 additions, 1 deletion
...AN-core/src/main/java/it/inaf/ia2/tsm/datalayer/ADQL.java
with
11 additions
and
1 deletion
TASMAN-core/src/main/java/it/inaf/ia2/tsm/datalayer/ADQL.java
+
11
−
1
View file @
ac6d32dc
...
@@ -47,6 +47,8 @@ public enum ADQL {
...
@@ -47,6 +47,8 @@ public enum ADQL {
CIRCLE
,
CIRCLE
,
POLYGON
;
POLYGON
;
private
static
final
ADQL
[]
FIXED_LENGTH_TYPES
=
new
ADQL
[]{
CHAR
,
BOOLEAN
,
SMALLINT
,
INTEGER
,
BIGINT
,
REAL
,
DOUBLE
};
/**
/**
* Returns a string representing a datatype which can't be interpreted as an
* Returns a string representing a datatype which can't be interpreted as an
* ADQL datatype (that is in case of not standard data types). Removes
* ADQL datatype (that is in case of not standard data types). Removes
...
@@ -64,7 +66,15 @@ public enum ADQL {
...
@@ -64,7 +66,15 @@ public enum ADQL {
* @return true if the datatype has a variable length, false otherwise.
* @return true if the datatype has a variable length, false otherwise.
*/
*/
public
static
boolean
isVariable
(
ADQL
adql
)
{
public
static
boolean
isVariable
(
ADQL
adql
)
{
return
adql
.
equals
(
VARCHAR
)
||
adql
.
equals
(
VARBINARY
)
||
adql
.
equals
(
CLOB
)
||
adql
.
equals
(
BLOB
);
// Since unknow data types are mapped to string, here a negative-logic is used
// (e.g. TIMESTAMP need to be considered as variable, in order to have
// arraysize *, otherwise taplib will throw an error)
for
(
ADQL
value
:
FIXED_LENGTH_TYPES
)
{
if
(
adql
.
equals
(
value
))
{
return
false
;
}
}
return
true
;
}
}
public
static
ADQL
parse
(
String
adqlStr
)
{
public
static
ADQL
parse
(
String
adqlStr
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment