standard_conforming_strings = off
backslash_quote = off
test=# insert into hoge(hoge) values('\'');
ERROR:  unsafe use of \' in a string literal

test=# insert into hoge(hoge) values('\\');
WARNING:  nonstandard use of \\ in a string literal
\が入る

test=# insert into hoge(hoge) values(E'\'');
ERROR:  unsafe use of \' in a string literal

test=# insert into hoge(hoge) values(E'\\');
\が入る
standard_conforming_strings = off
backslash_quote = on
test=# insert into hoge(hoge) values('\'');
WARNING:  nonstandard use of \' in a string literal
'が入る

test=# insert into hoge(hoge) values('\\');
WARNING:  nonstandard use of \\ in a string literal
\が入る

test=# insert into hoge(hoge) values(E'\'');
'が入る

test=# insert into hoge(hoge) values(E'\\');
\が入る

standard_conforming_strings = on
backslash_quote = off
test=# insert into hoge(hoge) values('\'');
'を閉じてないのでNG

test=# insert into hoge(hoge) values('\\');
\\が入る

test=# insert into hoge(hoge) values(E'\'');
ERROR:  unsafe use of \' in a string literal

test=# insert into hoge(hoge) values(E'\\');
\が入る

standard_conforming_strings = on
backslash_quote = on
test=# insert into hoge(hoge) values('\'');
'を閉じてないのでNG

test=# insert into hoge(hoge) values('\\');
\\が入る

test=# insert into hoge(hoge) values(E'\'');
'が入る

test=# insert into hoge(hoge) values(E'\\');
\が入る


backslash_quote = off
standard_conforming_strings = off
===
test=# insert into hoge(hoge) values('''');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 '
(1 row)
===
test=# insert into hoge(hoge) values('\'');
ERROR:  unsafe use of \' in a string literal
LINE 1: insert into hoge(hoge) values('\'');
                                      
HINT:  Use '' to write quotes in strings. \' is insecure in client-only encodings.
===
test=# insert into hoge(hoge) values('\\');
WARNING:  nonstandard use of \\ in a string literal
LINE 1: insert into hoge(hoge) values('\\');
                                      
HINT:  Use the escape string syntax for backslashes, e.g., E'\\'.
INSERT 0 1
test=# select * from hoge;
 hoge
------
 \
(1 row)
===
test=# insert into hoge(hoge) values(E'''');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 '
(1 row)
===
test=# insert into hoge(hoge) values(E'\'');
ERROR:  unsafe use of \' in a string literal
LINE 1: insert into hoge(hoge) values(E'\'');
                                      
HINT:  Use '' to write quotes in strings. \' is insecure in client-only encodings.
===
test=# insert into hoge(hoge) values(E'\\');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 \
(1 row)
backslash_quote = off
standard_conforming_strings = on
===
test=# insert into hoge(hoge) values('''');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 '
(1 row)
===
insert into hoge(hoge) values('\'');
'を閉じてないのでNG
===
test=# insert into hoge(hoge) values('\\');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 \\
(1 row)
===
test=# insert into hoge(hoge) values(E'''');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 '
(1 row)
===
test=# insert into hoge(hoge) values(E'\'');
ERROR:  unsafe use of \' in a string literal
LINE 1: insert into hoge(hoge) values(E'\'');
                                      
HINT:  Use '' to write quotes in strings. \' is insecure in client-only encodings.
===
test=# insert into hoge(hoge) values(E'\\');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 \
(1 row)
backslash_quote = on
standard_conforming_strings = off
===
test=# insert into hoge(hoge) values('''');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 '
(1 row)
===
test=# insert into hoge(hoge) values('\'');
WARNING:  nonstandard use of \' in a string literal
LINE 1: insert into hoge(hoge) values('\'');
                                      ^
HINT:  Use '' to write quotes in strings, or use the escape string syntax (E'...').
INSERT 0 1
test=# select * from hoge;
 hoge
------
 '
(1 row)
===
test=# insert into hoge(hoge) values('\\');
WARNING:  nonstandard use of \\ in a string literal
LINE 1: insert into hoge(hoge) values('\\');
                                      ^
HINT:  Use the escape string syntax for backslashes, e.g., E'\\'.
INSERT 0 1
test=# select * from hoge;
 hoge
------
 \
(1 row)
===
test=# insert into hoge(hoge) values(E'''');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 '
(1 row)
===
test=# insert into hoge(hoge) values(E'\'');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 '
(1 row)
===
test=# insert into hoge(hoge) values(E'\\');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 \
(1 row)
backslash_quote = on
standard_conforming_strings = on
===
test=# insert into hoge(hoge) values('''');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 '
(1 row)
===
test=# insert into hoge(hoge) values('\'');
'を閉じてないのでNG
===
test=# insert into hoge(hoge) values('\\');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 \\
(1 row)
===
test=# insert into hoge(hoge) values(E'''');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 '
(1 row)
===
test=# insert into hoge(hoge) values(E'\'');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 '
(1 row)
===
test=# insert into hoge(hoge) values(E'\\');
INSERT 0 1
test=# select * from hoge;
 hoge
------
 \
(1 row)

このページへのコメント

GhZ269 Im thankful for the blog post. Great.

0
Posted by awesome things! 2014年01月22日(水) 02:48:29 返信

5eFRly Im grateful for the blog article.Really looking forward to read more. Awesome.

0
Posted by seo thing 2013年12月21日(土) 02:00:55 返信

Ycyy11 <a href="http://lehvuxhxktve.com/">lehvuxhxktve</a>, [url=http://wanbdvcozxqn.com/]wanbdvcozxqn[/url], [link=http://hmpotdfapqdz.com/]hmpotdfapqdz[/link], http://iqyzjiupjjtt.com/

0
Posted by oqvrbqa 2013年11月21日(木) 16:00:13 返信

i7yLav <a href="http://wtqeicclooje.com/">wtqeicclooje</a>, [url=http://phafjgcytqdj.com/]phafjgcytqdj[/url], [link=http://jjueyzqdwnqh.com/]jjueyzqdwnqh[/link], http://uooxqqgwwqxd.com/

0
Posted by cglrczsbvy 2013年11月15日(金) 01:50:43 返信

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

Menu

ここは自由に編集できるエリアです。

管理人/副管理人のみ編集できます