* Test if the current session uses standard string literals. */
| 2176 | * Test if the current session uses standard string literals. |
| 2177 | */ |
| 2178 | bool |
| 2179 | standard_strings(void) |
| 2180 | { |
| 2181 | const char *val; |
| 2182 | |
| 2183 | if (!pset.db) |
| 2184 | return false; |
| 2185 | |
| 2186 | val = PQparameterStatus(pset.db, "standard_conforming_strings"); |
| 2187 | |
| 2188 | if (val && strcmp(val, "on") == 0) |
| 2189 | return true; |
| 2190 | |
| 2191 | return false; |
| 2192 | } |
| 2193 | |
| 2194 | |
| 2195 | /* |
no test coverage detected