Allow use of server side prepared statements for PostgreSQL using the pg driver.
Raise a more obvious error if you attempt to call a unnamed prepared statement.
# File lib/sequel/adapters/postgres.rb, line 731 def call(*) raise Error, "Cannot call prepared statement without a name" if prepared_statement_name.nil? super end
Execute the stored prepared statement name and the stored bind arguments instead of the SQL given.
# File lib/sequel/adapters/postgres.rb, line 740 def execute(sql, opts=OPTS, &block) super(prepared_statement_name, opts, &block) end
Same as execute, explicit due to intricacies of alias and super.
# File lib/sequel/adapters/postgres.rb, line 745 def execute_dui(sql, opts=OPTS, &block) super(prepared_statement_name, opts, &block) end