Skip to content

Commit

Permalink
Fix skipping null values
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeWebDev committed Aug 31, 2017
1 parent cafe751 commit 13f3150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pg/result_set.cr
Expand Up @@ -127,7 +127,7 @@ class PG::ResultSet < ::DB::ResultSet

private def skip
col_size = conn.read_i32
conn.skip_bytes(col_size) if col_size != 1
conn.skip_bytes(col_size) if col_size != -1
@column_index += 1
rescue IO::Error
raise DB::ConnectionLost.new(statement.connection)
Expand Down

0 comments on commit 13f3150

Please sign in to comment.