Skip to content

Commit

Permalink
describe portal/statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mabrek committed Nov 14, 2011
1 parent cc4e7aa commit 81790fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pgsql.erl
Expand Up @@ -92,9 +92,12 @@ execute(C, S, PortalName, N) ->
describe(C, #statement{name = Name}) ->
describe(C, statement, Name).

describe(C, statement, Name) ->
sync_on_error(C, gen_server:call(C, {describe_statement, Name}, infinity));

%% TODO unknown result format of Describe portal
describe(C, Type, Name) ->
sync_on_error(C, gen_server:call(C, {describe, Type, Name}, infinity)).
describe(C, portal, Name) ->
sync_on_error(C, gen_server:call(C, {describe_portal, Name}, infinity)).

close(C, #statement{name = Name}) ->
close(C, statement, Name).
Expand Down

0 comments on commit 81790fe

Please sign in to comment.