note 65130 added to function.pg-escape-string

From: Date: Mon, 24 Apr 2006 22:43:46 +0000
Subject: note 65130 added to function.pg-escape-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-109619@lists.php.net to get a copy of this message
Creating a double-tick is just fine. It works the same as the backslash-tick syntax. From the PostgreSQL docs: The fact that string constants are bound by single quotes presents an obvious semantic problem, however, in that if the sequence itself contains a single quote, the literal bounds of the constant are made ambiguous. To escape (make literal) a single quote within the string, you may type two adjacent single quotes. The parser will interpret the two adjacent single quotes within the string constant as a single, literal single quote. PostgreSQL will also allow single quotes to be embedded by using a C-style backslash. ---- Server IP: 216.194.113.175 Probable Submitter: 208.186.180.204 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.pg-escape-string.php Edit -- http://master.php.net/note/edit/65130 Del: integrated -- http://master.php.net/note/delete/65130/integrated Del: useless -- http://master.php.net/note/delete/65130/useless Del: bad code -- http://master.php.net/note/delete/65130/bad+code Del: spam -- http://master.php.net/note/delete/65130/spam Del: non-english -- http://master.php.net/note/delete/65130/non-english Del: in docs -- http://master.php.net/note/delete/65130/in+docs Del: other reasons-- http://master.php.net/note/delete/65130 Reject -- http://master.php.net/note/reject/65130 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#109619) next »