Changeset: 67fa5c6147d7 for monetdb-java URL: https://dev.monetdb.org/hg/monetdb-java?cmd=changeset;node=67fa5c6147d7 Modified Files: src/main/java/nl/cwi/monetdb/jdbc/MonetDatabaseMetaData.java Branch: default Log Message:
Correct SQL syntax in comment (LIKE "%" is not valid SQL in WHERE clause) diffs (165 lines): diff --git a/src/main/java/nl/cwi/monetdb/jdbc/MonetDatabaseMetaData.java b/src/main/java/nl/cwi/monetdb/jdbc/MonetDatabaseMetaData.java --- a/src/main/java/nl/cwi/monetdb/jdbc/MonetDatabaseMetaData.java +++ b/src/main/java/nl/cwi/monetdb/jdbc/MonetDatabaseMetaData.java @@ -1624,7 +1624,7 @@ public class MonetDatabaseMetaData * "" retrieves those without a schema; * null means that the schema name should not be used to narrow the search * @param procedureNamePattern - a procedure name pattern; must match the procedure name as it is stored in the database - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @return ResultSet - each row is a procedure description * @throws SQLException if a database access error occurs */ @@ -1734,9 +1734,9 @@ public class MonetDatabaseMetaData * "" retrieves those without a schema; * null means that the schema name should not be used to narrow the search * @param procedureNamePattern - a procedure name pattern; must match the procedure name as it is stored in the database - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @param columnNamePattern - a column name pattern; must match the column name as it is stored in the database - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @return ResultSet - each row describes a stored procedure parameter or column * @throws SQLException if a database-access error occurs * @see #getSearchStringEscape @@ -1830,7 +1830,7 @@ public class MonetDatabaseMetaData * null means that the schema name should not be used to narrow the search * @param tableNamePattern - a table name pattern; must match the table name as it is stored in the database * For all tables this should be "%" - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @param types - a list of table types, which must be from the list of table types returned * from getTableTypes(),to include; null returns all types * @return ResultSet - each row is a table description @@ -2084,9 +2084,9 @@ public class MonetDatabaseMetaData * null means that the schema name should not be used to narrow the search * @param tableNamePattern - a table name pattern; must match the table name as it is stored in the database * For all tables this should be "%" - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @param columnNamePattern - a column name pattern; must match the column name as it is stored in the database - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @return ResultSet - each row is a column description * @throws SQLException if a database error occurs * @see #getSearchStringEscape @@ -2181,9 +2181,9 @@ public class MonetDatabaseMetaData * @param catalog a catalog name; "" retrieves those without a catalog * @param schemaPattern a schema name; "" retrieves those without a schema * @param tableNamePattern a table name - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @param columnNamePattern a column name pattern - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @return ResultSet each row is a column privilege description * @see #getSearchStringEscape * @throws SQLException if a database error occurs @@ -2275,7 +2275,7 @@ public class MonetDatabaseMetaData * @param catalog a catalog name; "" retrieves those without a catalog * @param schemaPattern a schema name pattern; "" retrieves those without a schema * @param tableNamePattern a table name pattern - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @return ResultSet each row is a table privilege description * @see #getSearchStringEscape * @throws SQLException if a database error occurs @@ -2367,7 +2367,7 @@ public class MonetDatabaseMetaData * @param catalog a catalog name; "" retrieves those without a catalog * @param schema a schema name; "" retrieves those without a schema * @param table a table name - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @param scope the scope of interest; use same values as SCOPE * @param nullable include columns that are nullable? * @return ResultSet each row is a column description @@ -2465,7 +2465,7 @@ public class MonetDatabaseMetaData * @param catalog a catalog name; "" retrieves those without a catalog * @param schema a schema name; "" retrieves those without a schema * @param table a table name - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @return ResultSet each row is a column description * @throws SQLException if a database error occurs */ @@ -2508,7 +2508,7 @@ public class MonetDatabaseMetaData * @param catalog a catalog name; "" retrieves those without a catalog * @param schema a schema name pattern; "" retrieves those without a schema * @param table a table name - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @return ResultSet each row is a primary key column description * @throws SQLException if a database error occurs */ @@ -2632,7 +2632,7 @@ public class MonetDatabaseMetaData * @param catalog a catalog name; "" retrieves those without a catalog * @param schema a schema name pattern; "" retrieves those without a schema * @param table a table name - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @return ResultSet each row is a primary key column description * @see #getExportedKeys * @throws SQLException if a database error occurs @@ -2720,7 +2720,7 @@ public class MonetDatabaseMetaData * @param catalog a catalog name; "" retrieves those without a catalog * @param schema a schema name pattern; "" retrieves those without a schema * @param table a table name - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @return ResultSet each row is a foreign key column description * @see #getImportedKeys * @throws SQLException if a database error occurs @@ -2729,7 +2729,7 @@ public class MonetDatabaseMetaData public ResultSet getExportedKeys( final String catalog, final String schema, - final String table + final String table ) throws SQLException { final StringBuilder query = new StringBuilder(keyQuery.length() + 250); @@ -2811,11 +2811,11 @@ public class MonetDatabaseMetaData * @param pcatalog primary key catalog name; "" retrieves those without a catalog * @param pschema primary key schema name pattern; "" retrieves those without a schema * @param ptable primary key table name - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @param fcatalog foreign key catalog name; "" retrieves those without a catalog * @param fschema foreign key schema name pattern; "" retrieves those without a schema * @param ftable koreign key table name - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @return ResultSet each row is a foreign key column description * @throws SQLException if a database error occurs * @see #getImportedKeys @@ -2988,7 +2988,7 @@ public class MonetDatabaseMetaData * @param catalog a catalog name; "" retrieves those without a catalog * @param schema a schema name pattern; "" retrieves those without a schema * @param table a table name - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @param unique when true, return only indices for unique values; * when false, return indices regardless of whether unique or not * @param approximate when true, result is allowed to reflect approximate @@ -3753,7 +3753,7 @@ public class MonetDatabaseMetaData * not be used to narrow the search * @param functionNamePattern a function name pattern; must match * the function name as it is stored in the database - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @return ResultSet - each row is a function description * @throws SQLException if a database access error occurs */ @@ -3852,10 +3852,10 @@ public class MonetDatabaseMetaData * not be used to narrow the search * @param functionNamePattern a procedure name pattern; must match the * function name as it is stored in the database - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @param columnNamePattern a parameter name pattern; must match the * parameter or column name as it is stored in the database - * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE "%" condition is added to be evaluated). + * Note that our implementation allows this param to be null also (for efficiency as no extra LIKE '%' condition is added to be evaluated). * @return ResultSet - each row describes a user function parameter, * column or return type * @throws SQLException - if a database access error occurs _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list