09 Apr '12, 2am

RubyForge: Ruby/DBI: トラッカー詳細: 24932 Implement DBI::DBD::Pg::Database#quote() method for dbd-pg-0.3.7:

David Evans noticed that DBD::Pg database handles didn't offer a quote() method, which appears to be an omission vis-a-vis the DBI::DatabaseHandle specification/rdoc. See http://rubyforge.org/forum/forum.php?thread_id=32412&forum_id=958 Current dbd-pg-0.3.7 behavior under dbi-0.4.1 and atop ruby-pg-0.7.9.2008.10.13: $ ruby -e 'require "dbi"; DBI.connect("DBI:Pg:postgres", "pilcrow").quote("foo")' /usr/lib/ruby/site_ruby/1.8/dbi/handles/database.rb:167:in `quote': undefined method `quote' for #<DBI::DBD::Pg::Database:0xb7e1cd84> (NoMethodError) from -e:1 The attached patch (no automated tests) introduces connection-specific quoting in terms of PGConn.escape_bytea, to handle Ruby strings that may contain null bytes. It preserves DBI::DBD::Pg.quote, FWIW, in terms of the same function as a class method. With patch: $ ruby -e 'require "dbi"; p DBI.connect("DBI:Pg:postgres", "p...

Full article: http://rubyforge.org/tracker/index.php?func=detail&aid=24...

Tweets

Advice For Ruby Beginners 1

rubylearning.com 08 Apr '12, 3pm

It’s a fantastic language to introduce you in the world of real OOP. Not the latched-on variety of OOP that is Python or C...

RubyForge: Ruby/DBI: Project Info:

rubyforge.org 15 Apr '12, 11pm

Ruby/DBI develops a database independent interface for accessing databases - similar to Perl's DBI. Development Status: 4 ...

@Ohh_Whatever @Hazim7x which seat?

gv.com.sg 09 Apr '12, 2pm

Please complete your transaction within 10 minutes. You will receive a confirmation number at the end of your transaction....

Weekend Quote: Confidence and Awesomeness...

Weekend Quote: Confidence and Awesomeness...

ronisweigh.com 07 Apr '12, 2pm

The other day I received an email from a reader who recently completed her first half marathon. Let’s think about that for...