Skip to content

Commit

Permalink
Update to support Crystal 0.7.2
Browse files Browse the repository at this point in the history
fixes will#5
  • Loading branch information
will committed May 26, 2015
1 parent cafe8d5 commit cafe1ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/pg/decoder.cr
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
require "json"

lib LibC
fun atoi(str : UInt8*) : Int32
end

module PG
alias PGValue = String | Nil | Bool | Int32 | Float32 | Float64 | Time | JSON::Type

Expand Down
4 changes: 2 additions & 2 deletions src/pg/libpq.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module PG
alias Int = Int32
alias Oid = Int32

struct PGconn end
alias PGconn = Void
enum ConnStatusType
CONNECTION_OK, CONNECTION_BAD, CONNECTION_STARTED, CONNECTION_MADE,
CONNECTION_AWAITING_RESPONSE, CONNECTION_AUTH_OK, CONNECTION_SETENV,
Expand All @@ -28,7 +28,7 @@ module PG
result_format : Int
) : PGresult*

struct PGresult end
alias PGresult = Void
enum ExecStatusType
PGRES_EMPTY_QUERY, PGRES_COMMAND_OK, PGRES_TUPLES_OK, PGRES_COPY_OUT,
PGRES_COPY_IN, PGRES_BAD_RESPONSE, PGRES_NONFATAL_ERROR, PGRES_FATAL_ERROR,
Expand Down

0 comments on commit cafe1ea

Please sign in to comment.