diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-10 18:20:05 -0500 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-08-11 16:17:08 +0200 |
commit | 242f7afb966ad18a4b57b8d5beba793c8fd78c5d (patch) | |
tree | 6a44e726b9c467abef23b50a580dee28b5f48937 /COPYING | |
parent | 87bdee60bcca219ad13ea9bd14cd5611f9dac4c6 (diff) | |
download | aurweb-242f7afb966ad18a4b57b8d5beba793c8fd78c5d.tar.xz |
aur.inc.php: allow all functions using DB to take handle as arg
This prevents needless calls to db_connect() if we already have a
reference to a handle we can pass into a function. Although the current
underlying implementation using mysql_connect() will return the same
connection if all parameters are the same, this might not be true if we
switch to a more modern (e.g. PDO) interface.
In the face of safe transactions, it is extremely important all actions
are being taken over the same connection to the database.
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions