Re: autocommit feature in pgadmin
От | Ashesh Vashi |
---|---|
Тема | Re: autocommit feature in pgadmin |
Дата | |
Msg-id | CAG7mmozcQ1guz2y5hBDNWfNoihw4Z2yW418dNvjR_2N4YWSw3A@mail.gmail.com обсуждение исходный текст |
Ответ на | autocommit feature in pgadmin (Sanket Mehta <sanket.mehta@enterprisedb.com>) |
Ответы |
Re: autocommit feature in pgadmin
|
Список | pgadmin-hackers |
Hi Sanket,
In your patch, I see couple of issues with your patch:1. In pgadmin/frm/frmQuery.cpp:
i.e.
sysSettings::GetAutoCommit()
Please follow the correct naming convention for the frmQuery::CommandNoBegin(...) function.
Function must not start with a capital letter for a regular function (we do declare/define only the event functions with capital letters).
2. In pgadmin/ui/frmOptions.xrc:
A lot of changes are in this patch, which not required for this feature.
On Tue, Mar 24, 2015 at 6:01 PM, Sanket Mehta <sanket.mehta@enterprisedb.com> wrote:
Hi,Below is the description of the autocommit feature implementation in pgadmin:This feature is only applicable in query editor.Autocommit can be set on/off from 2 places.1. pgadmin main browser -> File menu -> Options -> Query tool -> Query editor -> Enable Auto commit2. In Query editor -> Query menu -> Auto-commmitBy default auto commit will be enabled in pgadmin.In any query editor session, once user uncheck this autocommit checkbox, depending upon postgreSQL standard for executing the query it will execute "BEGIN;" statement before executing the actual query and thus setting the autocommit off for that session.User can set the autocommit on at any time by selecting the checkbox from above mentioned places.But it will be active only after user has completed the transaction block(started by BEGIN as mentioned above) by END or ROLLBACK or COMMIT;Let me know in case of any queries.Regards,Sanket MehtaSr Software engineerEnterprisedb
В списке pgadmin-hackers по дате отправления: