Skip to content

Commit

Permalink
Add another test case for "postgres_escape".
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrSikora committed Aug 3, 2010
1 parent 8012048 commit 4c8e6b8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/t/escape.t
Expand Up @@ -118,3 +118,20 @@ Content-Type: text/plain
--- response_body
'你好'
--- timeout: 10
=== TEST 7: user arg
--- config
location /test {
postgres_escape $escaped $arg_say;
echo $escaped;
}
--- request
GET /test?say=he'llo!
--- error_code: 200
--- response_headers
Content-Type: text/plain
--- response_body
'he''llo!'
--- timeout: 10

0 comments on commit 4c8e6b8

Please sign in to comment.