Newer
Older
<?xml version="1.0" encoding="UTF-8"?>
<!--
_____________________________________________________________________________
INAF - OATS National Institute for Astrophysics - Astronomical Observatory of
Trieste INAF - IA2 Italian Center for Astronomical Archives
_____________________________________________________________________________
Copyright (C) 2017 Istituto Nazionale di Astrofisica
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License Version 3 as published by the
Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 51
Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<sql_type_mapping>
<type>
<adql>VARCHAR</adql>
Sonia Zorba
committed
<votable>char</votable>
<mysql inverse="true">
<type>VARCHAR</type>
</mysql>
<pgsql inverse="true">
<type>character varying</type>
<type>varchar</type>
</pgsql>
<java>java.lang.String</java>
</type>
Sonia Zorba
committed
Sonia Zorba
committed
<votable>char</votable>
<mysql inverse="true">
<type>CHAR</type>
</mysql>
<pgsql inverse="true">
<type>character</type>
<type>char</type>
</pgsql>
<java>java.lang.String</java>
</type>
Sonia Zorba
committed
<type>
<adql>SMALLINT</adql>
<votable>short</votable>
<mysql inverse="true">
<type>SMALLINT</type>
<type>TINYINT</type>
</mysql>
<pgsql inverse="true">
<type>smallint</type>
</pgsql>
<java>java.lang.Short</java>
</type>
Sonia Zorba
committed
<votable>int</votable>
<mysql inverse="true">
<type>INT</type>
<type>MEDIUMINT</type>
</mysql>
<pgsql inverse="true">
<type>integer</type>
<type>serial</type>
</pgsql>
<java>java.lang.Integer</java>
</type>
Sonia Zorba
committed
Sonia Zorba
committed
<votable>long</votable>
<mysql inverse="true">
<type>BIGINT</type>
</mysql>
<pgsql inverse="true">
<type>bigint</type>
<type>bigserial</type>
</pgsql>
<java>java.lang.Long</java>
</type>
Sonia Zorba
committed
Sonia Zorba
committed
<votable>float</votable>
<mysql inverse="true">
<type>FLOAT</type>
</mysql>
<pgsql inverse="true">
<type>real</type>
</pgsql>
<java>java.lang.Float</java>
</type>
Sonia Zorba
committed
Sonia Zorba
committed
<votable>double</votable>
<mysql inverse="true">
<type>DOUBLE</type>
<type>DECIMAL</type>
</mysql>
<pgsql inverse="true">
<type>double precision</type>
<type>decimal</type>
<type>numeric</type>
</pgsql>
<java>java.lang.Double</java>
</type>
Sonia Zorba
committed
<type>
<adql>BOOLEAN</adql>
Sonia Zorba
committed
<votable>boolean</votable>
<mysql inverse="true">
<type>BIT</type>
<type>BOOL</type>
<type>BOOLEAN</type>
</mysql>
<pgsql inverse="true">
<type>boolean</type>
</pgsql>
<java>java.lang.Boolean</java>
</type>
Sonia Zorba
committed
Sonia Zorba
committed
<votable>char</votable>
<mysql inverse="true">
<type>LONGTEXT</type>
<type>MEDIUMTEXT</type>
<type>TEXT</type>
</mysql>
<pgsql inverse="true">
<type>text</type>
</pgsql>
<java>java.lang.String</java>
</type>
<type>
<adql>BLOB</adql>
<votable>unsignedByte</votable>
<mysql inverse="true">
<type>BLOB</type>
</mysql>
<pgsql>
<type>bytea</type>
</pgsql>
<java>java.lang.String</java>
</type>
Sonia Zorba
committed
Sonia Zorba
committed
<type>
<adql>TIMESTAMP</adql>
Sonia Zorba
committed
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<votable>char</votable>
<mysql inverse="true">
<type>DATETIME</type>
<type>DATE</type>
<type>YEAR</type>
<!--
<type>TIMESTAMP</type>
<type>TIME</type>
-->
</mysql>
<pgsql inverse="true">
<type>timestamp</type>
<type>time</type>
<type>date</type>
</pgsql>
<java>java.lang.String</java>
</type>
<type>
<adql>BINARY</adql>
<votable>unsignedByte</votable>
<mysql inverse="true">
<type>BINARY</type>
</mysql>
<pgsql>
<type>bytea</type>
</pgsql>
<java>java.lang.String</java>
</type>
<type>
<adql>VARBINARY</adql>
<votable>unsignedByte</votable>
<mysql inverse="true">
<type>VARBINARY</type>
</mysql>
<pgsql inverse="true">
<type>bytea</type>
</pgsql>
<java>java.lang.String</java>
</type>
<type>
<adql>REGION</adql>
<votable>char</votable>
<mysql>
<type>VARCHAR</type>
</mysql>
<pgsql>
<type>character varying</type>
</pgsql>
<java>java.lang.String</java>
</type>
<type>
<adql>POINT</adql>
<votable>char</votable>
<mysql>
<type>VARCHAR</type>
</mysql>
<pgsql>
<type>character varying</type>
</pgsql>
Sonia Zorba
committed
<java>java.lang.String</java>
</type>