Loading src/adql/translator/JDBCTranslator.java +1 −1 Original line number Diff line number Diff line Loading @@ -896,7 +896,7 @@ public abstract class JDBCTranslator implements ADQLTranslator { * {@link #convertTypeFromDB(int, String, String, String[])}. So the value should always * be of the expected type and format. However, if it turns out that the type is wrong * and that the conversion is finally impossible, this function SHOULD throw a * {@link tap.data.DataReadException}. * {@link ParseException}. * </i></p> * * @param jdbcColValue A JDBC column value (returned by ResultSet.getObject(int)). Loading src/adql/translator/MySQLTranslator.java +15 −15 Original line number Diff line number Diff line Loading @@ -76,6 +76,21 @@ public class MySQLTranslator extends JDBCTranslator { caseSensitivity = 0x0F; } /** * Build a MySQLTranslator which always translates in SQL all identifiers * (schema, table and column) in the specified case sensitivity ; in other * words, schema, table and column names will all be surrounded or not by * back-quotes in the SQL translation. * * @param allCaseSensitive <i>true</i> to translate all identifiers in a * case sensitive manner * (surrounded by back-quotes), * <i>false</i> for case insensitivity. */ public MySQLTranslator(final boolean allCaseSensitive){ caseSensitivity = allCaseSensitive ? (byte)0x0F : (byte)0x00; } /** * Build a MySQLTranslator which will always translate in SQL identifiers * with the defined case sensitivity. Loading @@ -89,21 +104,6 @@ public class MySQLTranslator extends JDBCTranslator { * @param column <i>true</i> to translate column names with back-quotes * (case sensitive in the DBMS), <i>false</i> otherwise. */ public MySQLTranslator(final boolean allCaseSensitive){ caseSensitivity = allCaseSensitive ? (byte)0x0F : (byte)0x00; } /** * Build a MySQLTranslator which always translates in SQL all identifiers * (schema, table and column) in the specified case sensitivity ; in other * words, schema, table and column names will all be surrounded or not by * back-quotes in the SQL translation. * * @param allCaseSensitive <i>true</i> to translate all identifiers in a * case sensitive manner * (surrounded by back-quotes), * <i>false</i> for case insensitivity. */ public MySQLTranslator(final boolean catalog, final boolean schema, final boolean table, final boolean column){ caseSensitivity = IdentifierField.CATALOG.setCaseSensitive(caseSensitivity, catalog); caseSensitivity = IdentifierField.SCHEMA.setCaseSensitive(caseSensitivity, schema); Loading Loading
src/adql/translator/JDBCTranslator.java +1 −1 Original line number Diff line number Diff line Loading @@ -896,7 +896,7 @@ public abstract class JDBCTranslator implements ADQLTranslator { * {@link #convertTypeFromDB(int, String, String, String[])}. So the value should always * be of the expected type and format. However, if it turns out that the type is wrong * and that the conversion is finally impossible, this function SHOULD throw a * {@link tap.data.DataReadException}. * {@link ParseException}. * </i></p> * * @param jdbcColValue A JDBC column value (returned by ResultSet.getObject(int)). Loading
src/adql/translator/MySQLTranslator.java +15 −15 Original line number Diff line number Diff line Loading @@ -76,6 +76,21 @@ public class MySQLTranslator extends JDBCTranslator { caseSensitivity = 0x0F; } /** * Build a MySQLTranslator which always translates in SQL all identifiers * (schema, table and column) in the specified case sensitivity ; in other * words, schema, table and column names will all be surrounded or not by * back-quotes in the SQL translation. * * @param allCaseSensitive <i>true</i> to translate all identifiers in a * case sensitive manner * (surrounded by back-quotes), * <i>false</i> for case insensitivity. */ public MySQLTranslator(final boolean allCaseSensitive){ caseSensitivity = allCaseSensitive ? (byte)0x0F : (byte)0x00; } /** * Build a MySQLTranslator which will always translate in SQL identifiers * with the defined case sensitivity. Loading @@ -89,21 +104,6 @@ public class MySQLTranslator extends JDBCTranslator { * @param column <i>true</i> to translate column names with back-quotes * (case sensitive in the DBMS), <i>false</i> otherwise. */ public MySQLTranslator(final boolean allCaseSensitive){ caseSensitivity = allCaseSensitive ? (byte)0x0F : (byte)0x00; } /** * Build a MySQLTranslator which always translates in SQL all identifiers * (schema, table and column) in the specified case sensitivity ; in other * words, schema, table and column names will all be surrounded or not by * back-quotes in the SQL translation. * * @param allCaseSensitive <i>true</i> to translate all identifiers in a * case sensitive manner * (surrounded by back-quotes), * <i>false</i> for case insensitivity. */ public MySQLTranslator(final boolean catalog, final boolean schema, final boolean table, final boolean column){ caseSensitivity = IdentifierField.CATALOG.setCaseSensitive(caseSensitivity, catalog); caseSensitivity = IdentifierField.SCHEMA.setCaseSensitive(caseSensitivity, schema); Loading