diff options
author | zotlabs <mike@macgirvin.com> | 2018-01-28 21:43:50 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-01-28 21:43:50 -0800 |
commit | c1e44c0f54e2dc9a340f0d619fa8082ec12947c1 (patch) | |
tree | 3bb0deca1c350445bcc8935afa2536bd842007e7 /include/dba/dba_pdo.php | |
parent | 5cf2bf6b29fde04ddc791af8ce21731818bedb7a (diff) | |
parent | edf6ad9eda323f6e04823b8c110d21d82d519d32 (diff) | |
download | volse-hubzilla-c1e44c0f54e2dc9a340f0d619fa8082ec12947c1.tar.gz volse-hubzilla-c1e44c0f54e2dc9a340f0d619fa8082ec12947c1.tar.bz2 volse-hubzilla-c1e44c0f54e2dc9a340f0d619fa8082ec12947c1.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'include/dba/dba_pdo.php')
-rwxr-xr-x | include/dba/dba_pdo.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/dba/dba_pdo.php b/include/dba/dba_pdo.php index 7b58561a7..a9d824a50 100755 --- a/include/dba/dba_pdo.php +++ b/include/dba/dba_pdo.php @@ -111,6 +111,15 @@ class dba_pdo extends dba_driver { } } + function use_index($str) { + if($this->driver_dbtype === 'pgsql') { + return ''; + } + else { + return 'USE INDEX( ' . $str . ')'; + } + } + function quote_interval($txt) { if($this->driver_dbtype === 'pgsql') { return "'$txt'"; |