includes/dbal.php
changeset 1342 2164d18cb10c
parent 1227 bdac73ed481e
child 1369 cfce82063776
equal deleted inserted replaced
1341:90e2064c8ea2 1342:2164d18cb10c
   642 						</tr>';
   642 						</tr>';
   643 		}
   643 		}
   644 		echo '  </table>
   644 		echo '  </table>
   645 					</div>';
   645 					</div>';
   646 		$template->footer();
   646 		$template->footer();
       
   647 	}
       
   648 	
       
   649 	/**
       
   650 	 * Begin transaction
       
   651 	 */
       
   652 	
       
   653 	function transaction_begin()
       
   654 	{
       
   655 		$this->sql_query('BEGIN;');
       
   656 	}
       
   657 	
       
   658 	/**
       
   659 	 * Commit transaction
       
   660 	 */
       
   661 	
       
   662 	function transaction_commit()
       
   663 	{
       
   664 		$this->sql_query('COMMIT;');
       
   665 	}
       
   666 	
       
   667 	/**
       
   668 	 * Rollback transaction
       
   669 	 */
       
   670 	
       
   671 	function transaction_rollback()
       
   672 	{
       
   673 		$this->sql_query('ROLLBACK;');
   647 	}
   674 	}
   648 }
   675 }
   649 
   676 
   650 class postgresql
   677 class postgresql
   651 {
   678 {
  1252 		}
  1279 		}
  1253 		echo '  </table>
  1280 		echo '  </table>
  1254 					</div>';
  1281 					</div>';
  1255 		$template->footer();
  1282 		$template->footer();
  1256 	}
  1283 	}
       
  1284 	
       
  1285 	/**
       
  1286 	 * Begin transaction
       
  1287 	 */
       
  1288 	
       
  1289 	function transaction_begin()
       
  1290 	{
       
  1291 		$this->sql_query('BEGIN;');
       
  1292 	}
       
  1293 	
       
  1294 	/**
       
  1295 	 * Commit transaction
       
  1296 	 */
       
  1297 	
       
  1298 	function transaction_commit()
       
  1299 	{
       
  1300 		$this->sql_query('COMMIT;');
       
  1301 	}
       
  1302 	
       
  1303 	/**
       
  1304 	 * Rollback transaction
       
  1305 	 */
       
  1306 	
       
  1307 	function transaction_rollback()
       
  1308 	{
       
  1309 		$this->sql_query('ROLLBACK;');
       
  1310 	}
  1257 }
  1311 }
  1258 
  1312 
  1259 ?>
  1313 ?>