Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vollt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
Sonia Zorba
vollt
Commits
17f0ec65
Commit
17f0ec65
authored
10 years ago
by
gmantele
Browse files
Options
Downloads
Patches
Plain Diff
[ADQL] Add NULL tests over the ADQL schema and catalog names.
parent
9eaf1026
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/adql/db/SearchColumnList.java
+2
-2
2 additions, 2 deletions
src/adql/db/SearchColumnList.java
src/adql/db/SearchTableList.java
+15
-13
15 additions, 13 deletions
src/adql/db/SearchTableList.java
with
17 additions
and
15 deletions
src/adql/db/SearchColumnList.java
+
2
−
2
View file @
17f0ec65
...
...
@@ -46,7 +46,7 @@ import cds.utils.TextualSearchList;
* </i></p>
*
* @author Grégory Mantelet (CDS;ARI)
* @version 1.
2
(
11
/201
3
)
* @version 1.
3
(
02
/201
5
)
*/
public
class
SearchColumnList
extends
TextualSearchList
<
DBColumn
>
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -284,7 +284,7 @@ public class SearchColumnList extends TextualSearchList<DBColumn> {
}
// test the schema name:
if
(
schema
!=
null
){
if
(
schema
!=
null
&&
matchTable
.
getADQLSchemaName
()
!=
null
){
if
(
IdentifierField
.
SCHEMA
.
isCaseSensitive
(
caseSensitivity
)){
if
(!
matchTable
.
getADQLSchemaName
().
equals
(
schema
))
continue
;
...
...
This diff is collapsed.
Click to expand it.
src/adql/db/SearchTableList.java
+
15
−
13
View file @
17f0ec65
...
...
@@ -36,7 +36,7 @@ import cds.utils.TextualSearchList;
* </p>
*
* @author Grégory Mantelet (CDS;ARI)
* @version 1.3 (0
8
/201
4
)
* @version 1.3 (0
2
/201
5
)
*/
public
class
SearchTableList
extends
TextualSearchList
<
DBTable
>
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -156,22 +156,24 @@ public class SearchTableList extends TextualSearchList<DBTable> {
ArrayList
<
DBTable
>
result
=
new
ArrayList
<
DBTable
>();
for
(
DBTable
match
:
tmpResult
){
if
(
IdentifierField
.
SCHEMA
.
isCaseSensitive
(
caseSensitivity
)){
if
(!
match
.
getADQLSchemaName
().
equals
(
schema
))
continue
;
}
else
{
if
(!
match
.
getADQLSchemaName
().
equalsIgnoreCase
(
schema
))
continue
;
}
if
(
catalog
!=
null
){
if
(
IdentifierField
.
CATALOG
.
isCaseSensitive
(
caseSensitivity
)){
if
(!
match
.
getADQLCatalogName
().
equals
(
catalog
))
if
(
match
.
getADQLSchemaName
()
!=
null
){
if
(
IdentifierField
.
SCHEMA
.
isCaseSensitive
(
caseSensitivity
)){
if
(!
match
.
getADQLSchemaName
().
equals
(
schema
))
continue
;
}
else
{
if
(!
match
.
getADQL
Catalog
Name
().
equalsIgnoreCase
(
catalog
))
if
(!
match
.
getADQL
Schema
Name
().
equalsIgnoreCase
(
schema
))
continue
;
}
if
(
catalog
!=
null
&&
match
.
getADQLCatalogName
()
!=
null
){
if
(
IdentifierField
.
CATALOG
.
isCaseSensitive
(
caseSensitivity
)){
if
(!
match
.
getADQLCatalogName
().
equals
(
catalog
))
continue
;
}
else
{
if
(!
match
.
getADQLCatalogName
().
equalsIgnoreCase
(
catalog
))
continue
;
}
}
}
result
.
add
(
match
);
...
...
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