Sha256: 04666c101a2f5461a390aa0f8166ec36e16605615fa9daf2958b3b620bf060fb

Contents?: true

Size: 404 Bytes

Versions: 118

Compression:

Stored size: 404 Bytes

Contents

# -*- ruby -*-

require 'pg'

conn = PG.connect( :dbname => 'test' )
$stderr.puts '---',
	RUBY_DESCRIPTION,
	PG.version_string( true ),
	"Server version: #{conn.server_version}",
	"Client version: #{PG.library_version}",
	'---'

result = conn.exec( "SELECT * from pg_stat_activity" )

$stderr.puts %Q{Expected this to return: ["select * from pg_stat_activity"]}
p result.field_values( 'current_query' )

Version data entries

118 entries across 118 versions & 4 rubygems

Version Path
pg-1.4.4 sample/minimal-testcase.rb
pg-1.4.3-x64-mingw32 sample/minimal-testcase.rb
pg-1.4.3-x64-mingw-ucrt sample/minimal-testcase.rb
pg-1.4.3-x86-mingw32 sample/minimal-testcase.rb
pg-1.4.3 sample/minimal-testcase.rb
pg-1.4.2-x64-mingw32 sample/minimal-testcase.rb
pg-1.4.2-x64-mingw-ucrt sample/minimal-testcase.rb
pg-1.4.2-x86-mingw32 sample/minimal-testcase.rb
pg-1.4.2 sample/minimal-testcase.rb
pg-1.4.1-x86-mingw32 sample/minimal-testcase.rb
pg-1.4.1-x64-mingw32 sample/minimal-testcase.rb
pg-1.4.1-x64-mingw-ucrt sample/minimal-testcase.rb
pg-1.4.1 sample/minimal-testcase.rb
pg-1.4.0-x86-mingw32 sample/minimal-testcase.rb
pg-1.4.0-x64-mingw-ucrt sample/minimal-testcase.rb
pg-1.4.0-x64-mingw32 sample/minimal-testcase.rb
pg-1.4.0 sample/minimal-testcase.rb
pg-1.3.5-x64-mingw-ucrt sample/minimal-testcase.rb
pg-1.3.5-x64-mingw32 sample/minimal-testcase.rb
pg-1.3.5-x86-mingw32 sample/minimal-testcase.rb