pg_conn 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afa2c9841fc7aa38cc0535f7aeb7f307e9c2b5fea377a06ccd8f70bde28eb3fa
4
- data.tar.gz: 371188d5dcaa4f89bfc29ac8afdbc4497e3d59516ffc6e85de1b79b2a1a8e6e1
3
+ metadata.gz: 308fc149f0ee84be457ed10f26c2fcb7a8b5ddd21678301820173b067f6a5725
4
+ data.tar.gz: ea285e08ddc1a5728f7ae022ccd85df8e6312f15f8b8cf7cbdfbf61e1b584a9c
5
5
  SHA512:
6
- metadata.gz: 693d6fbb2fa03e452304a859f5e541f5a28e14f26ff445d2cdc5ae6861265dce28529f571d3046bc49917b827256b00c6fe1588e832ec65cc3fd21c7e2c7587b
7
- data.tar.gz: f3690ecdcfc7a50cb0f47b7269d6b515fee41f08b0a51f1c542c4d73fbdf6dae21d7008efaa9f749a2c2d2961e8d9ff2f2a098d8c5d7e379607ec45f80878ea3
6
+ metadata.gz: 8140b39f3c6930592312b6ac97f9c2a64eead993c37cf6b85caaaa83bcacc723a2a8b14381fcb422d34013290e905d1740b8a9974823fb25e6e3f7debb0c6d27
7
+ data.tar.gz: 52209c53fd85e21fa6baf2e966d39f75459974c0fd0d8a2086923944f7ad750e0c599d71764add2eb7c88b4ea471a5ee4ce194def68b1586a9e5e49b1a0b0f01
@@ -1,3 +1,3 @@
1
1
  module PgConn
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
data/lib/pg_conn.rb CHANGED
@@ -439,14 +439,14 @@ module PgConn
439
439
  # (like #tuple), and an array of of tuples if the result contained more
440
440
  # than one record with multiple columns (like #tuples)
441
441
  #
442
- def call(name, *args, proc: false)
442
+ def call(name, *args, proc: false) # :proc may interfere with hashes
443
443
  args_sql = args.map { |arg| # TODO: Use pg's encoder
444
444
  case arg
445
445
  when NilClass; "null"
446
446
  when String; "'#{arg}'"
447
447
  when Integer; arg
448
448
  when TrueClass, FalseClass; arg
449
- when Array; raise NotImplementedError
449
+ when Array; "Array['#{arg.join("', '")}']" # Quick and dirty # FIXME
450
450
  when Hash; raise NotImplementedError
451
451
  else
452
452
  raise ArgumentError, "Unrecognized value: #{arg.inspect}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_conn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen