Class | Sequel::JDBC::HSQLDB::Dataset |
In: |
lib/sequel/adapters/jdbc/hsqldb.rb
|
Parent: | JDBC::Dataset |
BOOL_TRUE | = | 'TRUE'.freeze |
BOOL_FALSE | = | 'FALSE'.freeze |
SQL_WITH_RECURSIVE | = | "WITH RECURSIVE ".freeze |
APOS | = | Dataset::APOS |
HSTAR | = | "H*".freeze |
BLOB_OPEN | = | "X'".freeze |
DEFAULT_FROM | = | " FROM (VALUES (0))".freeze |
TIME_FORMAT | = | "'%H:%M:%S'".freeze |
Handle HSQLDB specific case insensitive LIKE and bitwise operator support.
# File lib/sequel/adapters/jdbc/hsqldb.rb, line 153 153: def complex_expression_sql_append(sql, op, args) 154: case op 155: when :ILIKE, "NOT ILIKE""NOT ILIKE" 156: super(sql, (op == :ILIKE ? :LIKE : "NOT LIKE""NOT LIKE"), args.map{|v| SQL::Function.new(:ucase, v)}) 157: when :&, :|, :^, :%, :<<, :>>, 'B~''B~' 158: complex_expression_emulate_append(sql, op, args) 159: else 160: super 161: end 162: end
HSQLDB does support common table expressions, but the support is broken. CTEs operate more like temprorary tables or views, lasting longer than the duration of the expression. CTEs in earlier queries might take precedence over CTEs with the same name in later queries. Also, if any CTE is recursive, all CTEs must be recursive. If you want to use CTEs with HSQLDB, you‘ll have to manually modify the dataset to allow it.
# File lib/sequel/adapters/jdbc/hsqldb.rb, line 179 179: def supports_cte?(type=:select) 180: false 181: end