-
-
Save tpitale/ba72b246154b87c7e642 to your computer and use it in GitHub Desktop.
Test pg gem in MacRuby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'pg' | |
connection = PGconn.open(:dbname => 'somedb') | |
puts connection.exec("LISTEN test1").result_status | |
# this causes a Bus error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment