Skip to content
Snippets Groups Projects
Commit c00d21d8 authored by Grégory Mantelet's avatar Grégory Mantelet
Browse files

[ADQL] No more need to remove FunctionDef with empty names...now, by definition,

this is not any more possible.
parent 732e310d
No related branches found
No related tags found
No related merge requests found
...@@ -226,11 +226,11 @@ public class DBChecker implements QueryChecker { ...@@ -226,11 +226,11 @@ public class DBChecker implements QueryChecker {
// Store all allowed UDFs in a sorted array: // Store all allowed UDFs in a sorted array:
if (allowedUdfs != null) { if (allowedUdfs != null) {
// Remove all NULL and empty strings: // Remove all NULL:
tmp = new FunctionDef[allowedUdfs.size()]; tmp = new FunctionDef[allowedUdfs.size()];
cnt = 0; cnt = 0;
for(FunctionDef udf : allowedUdfs) { for(FunctionDef udf : allowedUdfs) {
if (udf != null && udf.name.trim().length() > 0) if (udf != null)
tmp[cnt++] = udf; tmp[cnt++] = udf;
} }
// make a copy of the array: // make a copy of the array:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment