Rev 1211 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1211 | Rev 1240 | ||
---|---|---|---|
Line 106... | Line 106... | ||
106 | * @param string $expr2 |
106 | * @param string $expr2 |
107 | * @return string |
107 | * @return string |
108 | */ |
108 | */ |
109 | public abstract function isNullFunction(string $expr1, string $expr2): string; |
109 | public abstract function isNullFunction(string $expr1, string $expr2): string; |
110 | 110 | ||
- | 111 | /** |
|
- | 112 | * This gives the SQL slang plugin the chance to review the result before it is passed to the application. |
|
- | 113 | * @param OIDplusQueryResult $res |
|
- | 114 | * @param string $sql |
|
- | 115 | * @param array|null $prepared_args |
|
- | 116 | * @return void |
|
- | 117 | */ |
|
- | 118 | public function reviewResult(OIDplusQueryResult $res, string $sql, array $prepared_args=null) { |
|
- | 119 | // nothing here. Override it is you need it. |
|
- | 120 | } |
|
- | 121 | ||
- | 122 | /** |
|
- | 123 | * @param string $sql |
|
- | 124 | * @return bool |
|
- | 125 | */ |
|
- | 126 | public function fetchableRowsExpected(string $sql): bool { |
|
- | 127 | return str_starts_with(trim(strtolower($sql)),'select'); |
|
- | 128 | } |
|
- | 129 | ||
111 | } |
130 | } |