mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
dba_pdo: return results when using common table expressions (CTE)
This commit is contained in:
@@ -78,7 +78,7 @@ class dba_pdo extends dba_driver {
|
||||
|
||||
$result = false;
|
||||
$this->error = '';
|
||||
$select = stripos($sql, 'select') === 0 || stripos($sql, 'returning ') > 0;
|
||||
$select = stripos($sql, 'select') === 0 || stripos($sql, 'with') === 0 || stripos($sql, 'returning ') > 0;
|
||||
|
||||
try {
|
||||
$result = $this->db->query($sql, PDO::FETCH_ASSOC);
|
||||
|
||||
Reference in New Issue
Block a user