Subversion Repositories oidplus

Rev

Rev 1160 | Rev 1220 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1160 Rev 1219
Line 55... Line 55...
55
                                throw new OIDplusSQLException($sql, $this->error());
55
                                throw new OIDplusSQLException($sql, $this->error());
56
                        } else {
56
                        } else {
57
                                return new OIDplusQueryResultPgSql($res);
57
                                return new OIDplusQueryResultPgSql($res);
58
                        }
58
                        }
59
                } else {
59
                } else {
60
                        if (!is_array($prepared_args)) {
-
 
61
                                throw new OIDplusException(_L('"prepared_args" must be either NULL or an ARRAY.'));
-
 
62
                        }
-
 
63
 
-
 
64
                        // convert ? ? ? to $1 $2 $3
60
                        // convert ? ? ? to $1 $2 $3
65
                        $sql = preg_replace_callback('@\\?@', function($found) {
61
                        $sql = preg_replace_callback('@\\?@', function($found) {
66
                                static $i = 0;
62
                                static $i = 0;
67
                                $i++;
63
                                $i++;
68
                                return '$'.$i;
64
                                return '$'.$i;