Skip to content
Snippets Groups Projects
Commit edb10897 authored by gmantele's avatar gmantele
Browse files

[ADQL] Fix the problem of DOT inside table name while parsing an ADQL query.

parent dc766f2c
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,8 @@ package adql.query.from; ...@@ -16,7 +16,8 @@ package adql.query.from;
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with ADQLLibrary. If not, see <http://www.gnu.org/licenses/>. * along with ADQLLibrary. If not, see <http://www.gnu.org/licenses/>.
* *
* Copyright 2012 - UDS/Centre de Données astronomiques de Strasbourg (CDS) * Copyright 2012-2015 - UDS/Centre de Données astronomiques de Strasbourg (CDS),
* Astronomisches Rechen Institut (ARI)
*/ */
import java.util.ArrayList; import java.util.ArrayList;
...@@ -37,8 +38,8 @@ import adql.query.TextPosition; ...@@ -37,8 +38,8 @@ import adql.query.TextPosition;
* It represents any item of the clause FROM: a table name or a sub-query.<br /> * It represents any item of the clause FROM: a table name or a sub-query.<br />
* A table reference may have an alias (MUST if it is a sub-query). * A table reference may have an alias (MUST if it is a sub-query).
* *
* @author Gr&eacute;gory Mantelet (CDS) * @author Gr&eacute;gory Mantelet (CDS;ARI)
* @version 01/2012 * @version 06/2015
*/ */
public class ADQLTable implements ADQLObject, FromContent { public class ADQLTable implements ADQLObject, FromContent {
...@@ -83,7 +84,7 @@ public class ADQLTable implements ADQLObject, FromContent { ...@@ -83,7 +84,7 @@ public class ADQLTable implements ADQLObject, FromContent {
* @param table Name of the table. * @param table Name of the table.
*/ */
public ADQLTable(String schema, String table){ public ADQLTable(String schema, String table){
this(table); setTableName(table);
setSchemaName(schema); setSchemaName(schema);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment