note 88680 added to function.odbc-free-result

From: Date: Tue, 03 Feb 2009 16:45:20 +0000
Subject: note 88680 added to function.odbc-free-result
Groups: php.notes 
Request: Send a blank email to php-notes+get-150152@lists.php.net to get a copy of this message
It seems it is common sense to say it is a god practice to free any resource when it isn´t necessary anymore. Also, when talking about releasing the resources associated with a given result set it is a common sense to say never release a result set before it is assured to have been either commited or rolled back. Then, the following code sequence should be the most adequate (assuming auto-commit is disabled): odbc_commit(...); odbc_free_result(...); ... odbc_close(...); ---- Server IP: 69.147.83.197 Probable Submitter: 200.232.88.2 ---- Manual Page -- http://www.php.net/manual/en/function.odbc-free-result.php Edit -- https://master.php.net/note/edit/88680 Del: integrated -- https://master.php.net/note/delete/88680/integrated Del: useless -- https://master.php.net/note/delete/88680/useless Del: bad code -- https://master.php.net/note/delete/88680/bad+code Del: spam -- https://master.php.net/note/delete/88680/spam Del: non-english -- https://master.php.net/note/delete/88680/non-english Del: in docs -- https://master.php.net/note/delete/88680/in+docs Del: other reasons-- https://master.php.net/note/delete/88680 Reject -- https://master.php.net/note/reject/88680 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150152) next »