Itagaki Takahiro wrote:

> Also new two interfaces will be introduced:
> 
>     interface Connection    /* represents PGconn */
>     {
>         void    disconnect(self);
>         Cursor *open(self, query, fetchsize); /* for SELECT */
>         int64   exec(self, query);            /* for UPDATE, INSERT, DELETE */
>         bool    transaction_command(self, type);
>     }

It's not good to return int64 in exec(), because it could have a
RETURNING clause.  (So it also needs a fetchsize).

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to