3 use Friendica\Database\DBA;
6 * @brief execute SQL query with printf style args - deprecated
8 * Please use the DBA:: functions instead:
9 * DBA::select, DBA::exists, DBA::insert
10 * DBA::delete, DBA::update, DBA::p, DBA::e
13 * @return array|bool Query array
18 $args = func_get_args();
21 if (!DBA::connected()) {
25 $sql = DBA::cleanQuery($sql);
26 $sql = DBA::anyValueFallback($sql);
28 $stmt = @vsprintf($sql, $args);
36 $columns = DBA::columnCount($ret);
38 $data = DBA::toArray($ret);
40 if ((count($data) == 0) && ($columns == 0)) {