Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Petr Menšík
BIND
Commits
db237e54
Commit
db237e54
authored
Nov 22, 2000
by
Brian Wellington
Browse files
note that the \ is special for PostgreSQL, not standard SQL.
parent
2c46670f
Changes
2
Hide whitespace changes
Inline
Side-by-side
contrib/sdb/pgsql/pgsqldb.c
View file @
db237e54
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: pgsqldb.c,v 1.
8
2000/11/2
0 19:56:11
bwelling Exp $ */
/* $Id: pgsqldb.c,v 1.
9
2000/11/2
2 21:18:12
bwelling Exp $ */
#include <config.h>
...
...
@@ -62,6 +62,7 @@ quotestring(const char *source, char *dest) {
while
(
*
source
!=
0
)
{
if
(
*
source
==
'\''
)
*
dest
++
=
'\''
;
/* SQL doesn't treat \ as special, but PostgreSQL does */
else
if
(
*
source
==
'\\'
)
*
dest
++
=
'\\'
;
*
dest
++
=
*
source
++
;
...
...
contrib/sdb/pgsqldb.c
View file @
db237e54
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: pgsqldb.c,v 1.
8
2000/11/2
0 19:56:11
bwelling Exp $ */
/* $Id: pgsqldb.c,v 1.
9
2000/11/2
2 21:18:12
bwelling Exp $ */
#include <config.h>
...
...
@@ -62,6 +62,7 @@ quotestring(const char *source, char *dest) {
while
(
*
source
!=
0
)
{
if
(
*
source
==
'\''
)
*
dest
++
=
'\''
;
/* SQL doesn't treat \ as special, but PostgreSQL does */
else
if
(
*
source
==
'\\'
)
*
dest
++
=
'\\'
;
*
dest
++
=
*
source
++
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment