lib/active_record/connection_adapters/fdbsql/schema_statements.rb
def tables(name = nil, schema = nil, table = nil)
          schema = schema ? "'#{quote_string(schema)}'" : 'CURRENT_SCHEMA'
          select_rows(
            "SELECT table_name "+
            "FROM information_schema.tables "+
            "WHERE table_type = 'TABLE' "+
            "  AND table_schema = #{schema} "+
            (table ? "AND table_name = '#{quote_string(table)}'" : ""),
            SCHEMA_LOG_NAME
          ).map { |row|
            row[0]
          }
        end
# Returns the list of all tables in the schema search path or a specified schema.
Returns the list of all tables in the schema search path or a specified schema.
Returns the list of all tables in the schema search path or a specified schema .
def tables(name = nil, schema = nil, table = nil)
          schema = schema ? "'#{quote_string(schema)}'" : 'CURRENT_SCHEMA'
          select_rows(
            "SELECT table_name "+
            "FROM information_schema.tables "+
            "WHERE table_type = 'TABLE' "+
            "  AND table_schema = #{schema} "+
            (table ? "AND table_name = '#{quote_string(table)}'" : ""),
            SCHEMA_LOG_NAME
          ).map { |row|
            row[0]
          }
        end
def tables ( name = nil , schema = nil , table = nil ) schema = schema ? "'#{quote_string(schema)}'" : 'CURRENT_SCHEMA' select_rows ( "SELECT table_name " + "FROM information_schema.tables " + "WHERE table_type = 'TABLE' " + "  AND table_schema = #{schema} " + ( table ? "AND table_name = '#{quote_string(table)}'" : "" ) , SCHEMA_LOG_NAME ) . map { | row | row [ 0 ] } end
Returns the list of all tables in the schema search path or a specified schema.
Returns the list of all tables in the schema search path or a specified schema .
name
schema
table