★ wanayoo — archive 1999 http://fr.php.net/manual/function.sesam-settransaction.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to SESAM
Quick Reference
English version of this pageGerman version of this pageJapanese version of this page
Italian version of this pageFrench version of this pageHungarian version of this page
Spanish version of this pageDutch version of this pageBrazilian Portuguese version of this page
Korean version of this pageCzech version of this page
SESAM
* sesam_connect
* sesam_disconnect
* sesam_settransaction
* sesam_commit
* sesam_rollback
* sesam_execimm
* sesam_query
* sesam_num_fields
* sesam_field_name
* sesam_diagnostic
* sesam_fetch_result
* sesam_affected_rows
* sesam_errormsg
* sesam_field_array
* sesam_fetch_row
* sesam_fetch_array
* sesam_seek_row
* sesam_free_result

  Thanks to:
 Chek.com
 easyDNS
 VA Linux Systems

  Related sites:
Apache
MySQL
PostgreSQL
Zend Tech.

  Community:
LinuxFund.org
OSDN
Manual: sesam_settransaction
View the source code for this pageSearch the site



Previous page
 sesam_disconnect
 Updated
Mon, 08 Jan 2001
sesam_commit 
Next page


sesam_settransaction

(unknown)

sesam_settransaction -- Set SESAM transaction parameters

Description

boolean sesam_settransaction (int isolation_level, int read_only)

Returns: TRUE if the values are valid, and the settransaction() operation was successful, FALSE otherwise.

sesam_settransaction() overrides the default values for the "isolation level" and "read-only" transaction parameters (which are set in the SESAM configuration file), in order to optimize subsequent queries and guarantee database consistency. The overridden values are used for the next transaction only.

sesam_settransaction() can only be called before starting a transaction, not after the transaction has been started already.

To simplify the use in php scripts, the following constants have been predefined in php (see SESAM handbook for detailed explanation of the semantics):

Table 1. Valid values for "Isolation_Level" parameter

ValueConstantMeaning
1SESAM_TXISOL_READ_UNCOMMITTEDRead Uncommitted
2SESAM_TXISOL_READ_COMMITTEDRead Committed
3SESAM_TXISOL_REPEATABLE_READRepeatable Read
4SESAM_TXISOL_SERIALIZABLESerializable

Table 2. Valid values for "Read_Only" parameter

ValueConstantMeaning
0SESAM_TXREAD_READWRITERead/Write
1SESAM_TXREAD_READONLYRead-Only

The values set by sesam_settransaction() will override the default setting specified in the SESAM configuration file.

Example 1. Setting SESAM transaction parameters


<?php
sesam_settransaction (SESAM_TXISOL_REPEATABLE_READ,
                     SESAM_TXREAD_READONLY);
?>
      


 About Notes


Previous page
 sesam_disconnect
 Updated
Mon, 08 Jan 2001
sesam_commit 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
France
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.