Sha256: e9d8dca2eded299bb463c87a3a5e79ccc523124c9280780890fe1a39a8049be3
Contents?: true
Size: 456 Bytes
Versions: 123
Compression:
Stored size: 456 Bytes
Contents
# -*- ruby -*- require 'pg' c = PG.connect( dbname: 'test' ) # this one works: c.exec( "DROP TABLE IF EXISTS foo" ) c.exec( "CREATE TABLE foo (strings character varying[]);" ) # But using a prepared statement works: c.set_error_verbosity( PG::PQERRORS_VERBOSE ) c.prepare( 'stmt', "INSERT INTO foo VALUES ($1);" ) # This won't work #c.exec_prepared( 'stmt', ["ARRAY['this','that']"] ) # but this will: c.exec_prepared( 'stmt', ["{'this','that'}"] )
Version data entries
123 entries across 123 versions & 4 rubygems