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

[TAP] Fix detection type problem on upload (=all types were considered as varchar)

parent 33417858
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,8 @@ package tap.metadata; ...@@ -16,7 +16,8 @@ package tap.metadata;
* 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 TAPLibrary. If not, see <http://www.gnu.org/licenses/>. * along with TAPLibrary. If not, see <http://www.gnu.org/licenses/>.
* *
* Copyright 2012 - UDS/Centre de Données astronomiques de Strasbourg (CDS) * Copyright 2012,2014 - UDS/Centre de Données astronomiques de Strasbourg (CDS),
* Astronomisches Rechen Institute (ARI)
*/ */
import cds.savot.writer.SavotWriter; import cds.savot.writer.SavotWriter;
...@@ -29,8 +30,8 @@ import cds.savot.writer.SavotWriter; ...@@ -29,8 +30,8 @@ import cds.savot.writer.SavotWriter;
* <li><code>xtype</code>.</li> * <li><code>xtype</code>.</li>
* </ul> * </ul>
* *
* @author Gr&eacute;gory Mantelet (CDS) * @author Gr&eacute;gory Mantelet (CDS;ARI)
* @version 11/2011 * @version 07/2014
*/ */
public final class VotType { public final class VotType {
public final String datatype; public final String datatype;
...@@ -48,7 +49,7 @@ public final class VotType { ...@@ -48,7 +49,7 @@ public final class VotType {
throw new NullPointerException("Null VOTable datatype !"); throw new NullPointerException("Null VOTable datatype !");
this.datatype = datatype; this.datatype = datatype;
this.arraysize = arraysize; this.arraysize = arraysize;
this.xtype = xtype; this.xtype = (xtype != null && xtype.trim().length() <= 0) ? null : xtype;
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment