Skip to content
sql_type_mapping.xml 2.53 KiB
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>
        <mysql>VARCHAR</mysql>
        <pgsql>character varying</pgsql>
        <java>java.lang.String</java>
    </type>
    <type>
        <adql>CHAR</adql>
        <mysql>CHAR</mysql>
        <pgsql>character</pgsql>
        <java>java.lang.String</java>
    </type>
    <type>
        <adql>INTEGER</adql>
        <mysql>INT</mysql>
        <pgsql>integer</pgsql>
        <java>java.lang.Integer</java>
    </type>
    <type>
        <adql>BIGINT</adql>
        <mysql>BIGINT</mysql>
        <pgsql>bigint</pgsql>
        <java>java.lang.Long</java>
    </type>
    <type>
        <adql>REAL</adql>
        <mysql>FLOAT</mysql>
        <pgsql>integer</pgsql>
        <java>java.lang.Float</java>
    </type>
    <type>
        <adql>DOUBLE</adql>
        <mysql>DOUBLE</mysql>
        <pgsql>double precision</pgsql>
        <java>java.lang.Double</java>
    </type>
    <type>
        <adql>BOOLEAN</adql>
        <mysql>BIT</mysql>
        <pgsql>boolean</pgsql>
        <java>java.lang.Boolean</java>
    </type>
    <type>
        <adql>CLOB</adql>
        <mysql>LONGTEXT</mysql>
        <pgsql>text</pgsql>
        <java>java.lang.String</java>
    </type>
    <type>
        <adql>TIMESTAMP</adql>
        <mysql>TIMESTAMP</mysql>
        <pgsql>timestamp</pgsql>
        <java>java.lang.String</java>
    </type>
    <type>
        <adql>REGION</adql>
        <mysql>VARCHAR</mysql>
        <pgsql>character varying</pgsql>
        <java>java.lang.String</java>
    </type>
    
</sql_type_mapping>