Fix ruby2.0 Hash[nil] deprecated warnings in pg.rb
Merge pull request #981 from ys/refactor/pg-params-compact

Fix ruby2.0 Hash[nil] deprecated warnings in pg.rb