["set search_path to _global,public","0E0","data"] ["select count(*) from pg_tables where tablename = '_general' and schemaname = '_global'",[["1"]],"data"] ["select version from _global._general limit 1",[["0.009"]],"data"] ["set lc_messages to \"C\";","0E0","data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] ["set search_path to tester,public","0E0","data"] [" select id from _roles where name = 'Admin' and password = '5f4dcc3b5aa765d61d8327deb882cf99' limit 1; ",[["1"]],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select c.relname as name, obj_description(c.oid, 'pg_class') as description from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' order by c.oid",[],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select name from _actions ",[],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select count(*) from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' ",[["0"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[],"data"] [" create table \"Carrie\" (id serial primary key , \"title\" text , \"url\" text , \"num\" integer ); grant select on table \"Carrie\" to anonymous; comment on table \"Carrie\" is '我的书签'; comment on column \"Carrie\".id is 'ID';comment on column \"Carrie\".\"title\" is '标题';comment on column \"Carrie\".\"url\" is '网址';comment on column \"Carrie\".\"num\" is 'num';","0E0","data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select count(*) from \"Carrie\" ",[["0"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select a.attname as name from pg_catalog.pg_attribute a where a.attnum > 0 and not a.attisdropped and a.attname <> 'id' and a.attrelid = (select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relname ='Carrie' and n.nspname = 'tester') order by a.attnum ",[["title"],["url"],["num"]],"data"] ["insert into \"Carrie\" (\"num\", \"url\", \"title\") values ('10', 'http://www.carriezh.cn/', 'hello carrie');\n",1,"data"] ["select max(id) from \"Carrie\"",[["1"]],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select count(*) from \"Carrie\" ",[["1"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select a.attname as name from pg_catalog.pg_attribute a where a.attnum > 0 and not a.attisdropped and a.attname <> 'id' and a.attrelid = (select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relname ='Carrie' and n.nspname = 'tester') order by a.attnum ",[["title"],["url"],["num"]],"data"] ["insert into \"Carrie\" (\"num\", \"url\", \"title\") values ('1', 'http://zhangxiaojue.cn', 'second');\n",1,"data"] ["select max(id) from \"Carrie\"",[["2"]],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select count(*) from \"Carrie\" ",[["2"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select a.attname as name from pg_catalog.pg_attribute a where a.attnum > 0 and not a.attisdropped and a.attname <> 'id' and a.attrelid = (select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relname ='Carrie' and n.nspname = 'tester') order by a.attnum ",[["title"],["url"],["num"]],"data"] ["insert into \"Carrie\" (\"num\", \"url\", \"title\") values ('0', 'http://zhan.cn.yahoo.com', 'Num 0');\n",1,"data"] ["select max(id) from \"Carrie\"",[["3"]],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] ["select count(*) from _actions",[["0"]],"data"] [" select compiled from _actions where name = 'Query' limit 1; ",[],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" insert into _actions (name, definition, description, compiled) values('Query', 'select title from Carrie where num = $num; select url from Carrie where num = $num', NULL, E'[{\"num\":{\"default_value\":null,\"used\":1,\"name\":\"num\",\"label\":null,\"type\":\"literal\"}},[[[\"select \\\\\"title\\\\\" from \\\\\"Carrie\\\\\" where \\\\\"num\\\\\" = \",[\"num\",\"unknown\"]]],[[\"select \\\\\"url\\\\\" from \\\\\"Carrie\\\\\" where \\\\\"num\\\\\" = \",[\"num\",\"unknown\"]]]]]'); ",1,"data"] ["select max(id) from \"_actions\"",[["1"]],"data"] [" insert into _action_params (name, type, label, default_value, used, action_id) values ('num', 'literal', NULL, NULL, true, '1'); ",1,"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select compiled from _actions where name = 'Query' limit 1; ",[["[{\"num\":{\"default_value\":null,\"used\":1,\"name\":\"num\",\"label\":null,\"type\":\"literal\"}},[[[\"select \\\"title\\\" from \\\"Carrie\\\" where \\\"num\\\" = \",[\"num\",\"unknown\"]]],[[\"select \\\"url\\\" from \\\"Carrie\\\" where \\\"num\\\" = \",[\"num\",\"unknown\"]]]]]"]],"data"] ["select \"title\" from \"Carrie\" where \"num\" = '10'",[{"title":"hello carrie"}],"data"] ["select \"url\" from \"Carrie\" where \"num\" = '10'",[{"url":"http://www.carriezh.cn/"}],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select compiled from _actions where name = 'Query' limit 1; ",[["[{\"num\":{\"default_value\":null,\"used\":1,\"name\":\"num\",\"label\":null,\"type\":\"literal\"}},[[[\"select \\\"title\\\" from \\\"Carrie\\\" where \\\"num\\\" = \",[\"num\",\"unknown\"]]],[[\"select \\\"url\\\" from \\\"Carrie\\\" where \\\"num\\\" = \",[\"num\",\"unknown\"]]]]]"]],"data"] ["select \"title\" from \"Carrie\" where \"num\" = '0'",[{"title":"Num 0"}],"data"] ["select \"url\" from \"Carrie\" where \"num\" = '0'",[{"url":"http://zhan.cn.yahoo.com"}],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select count(*) from \"Carrie\" ",[["3"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select a.attname as name from pg_catalog.pg_attribute a where a.attnum > 0 and not a.attisdropped and a.attname <> 'id' and a.attrelid = (select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relname ='Carrie' and n.nspname = 'tester') order by a.attnum ",[["title"],["url"],["num"]],"data"] ["insert into \"Carrie\" (\"num\", \"url\", \"title\") values ('0', 'http://zhan.cn.yahoo.com?p=0', 'url var');\n",1,"data"] ["select max(id) from \"Carrie\"",[["4"]],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select count(*) from \"Carrie\" ",[["4"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select a.attname as name from pg_catalog.pg_attribute a where a.attnum > 0 and not a.attisdropped and a.attname <> 'id' and a.attrelid = (select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relname ='Carrie' and n.nspname = 'tester') order by a.attnum ",[["title"],["url"],["num"]],"data"] ["insert into \"Carrie\" (\"num\", \"url\", \"title\") values ('0', 'http://zhan.cn.yahoo.com?p=1', 'url var');\n",1,"data"] ["select max(id) from \"Carrie\"",[["5"]],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] ["select count(*) from _actions",[["1"]],"data"] [" select compiled from _actions where name = 'VarQuery' limit 1; ",[],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" insert into _actions (name, definition, description, compiled) values('VarQuery', 'select * from Carrie where url = ''http://zhan.cn.yahoo.com?p='' || $p', NULL, E'[{\"p\":{\"default_value\":null,\"used\":1,\"name\":\"p\",\"label\":null,\"type\":\"literal\"}},[[[\"select * from \\\\\"Carrie\\\\\" where \\\\\"url\\\\\" = (''http://zhan.cn.yahoo.com?p='' || \",[\"p\",\"unknown\"],\")\"]]]]'); ",1,"data"] ["select max(id) from \"_actions\"",[["2"]],"data"] [" insert into _action_params (name, type, label, default_value, used, action_id) values ('p', 'literal', NULL, NULL, true, '2'); ",1,"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select compiled from _actions where name = 'VarQuery' limit 1; ",[["[{\"p\":{\"default_value\":null,\"used\":1,\"name\":\"p\",\"label\":null,\"type\":\"literal\"}},[[[\"select * from \\\"Carrie\\\" where \\\"url\\\" = ('http://zhan.cn.yahoo.com?p=' || \",[\"p\",\"unknown\"],\")\"]]]]"]],"data"] ["select * from \"Carrie\" where \"url\" = ('http://zhan.cn.yahoo.com?p=' || '0')",[{"num":"0","url":"http://zhan.cn.yahoo.com?p=0","id":"4","title":"url var"}],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select count(*) from \"Carrie\" ",[["5"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select a.attname as name from pg_catalog.pg_attribute a where a.attnum > 0 and not a.attisdropped and a.attname <> 'id' and a.attrelid = (select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relname ='Carrie' and n.nspname = 'tester') order by a.attnum ",[["title"],["url"],["num"]],"data"] ["insert into \"Carrie\" (\"num\", \"url\", \"title\") values ('0', 'http://zhan.cn.yahoo.com', '中文');\n",1,"data"] ["select max(id) from \"Carrie\"",[["6"]],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] ["select count(*) from _actions",[["2"]],"data"] [" select compiled from _actions where name = 'CNQuery' limit 1; ",[],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" insert into _actions (name, definition, description, compiled) values('CNQuery', 'select * from Carrie where title=$title', NULL, E'[{\"title\":{\"default_value\":null,\"used\":1,\"name\":\"title\",\"label\":null,\"type\":\"literal\"}},[[[\"select * from \\\\\"Carrie\\\\\" where \\\\\"title\\\\\" = \",[\"title\",\"unknown\"]]]]]'); ",1,"data"] ["select max(id) from \"_actions\"",[["3"]],"data"] [" insert into _action_params (name, type, label, default_value, used, action_id) values ('title', 'literal', NULL, NULL, true, '3'); ",1,"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select compiled from _actions where name = 'CNQuery' limit 1; ",[["[{\"title\":{\"default_value\":null,\"used\":1,\"name\":\"title\",\"label\":null,\"type\":\"literal\"}},[[[\"select * from \\\"Carrie\\\" where \\\"title\\\" = \",[\"title\",\"unknown\"]]]]]"]],"data"] ["select * from \"Carrie\" where \"title\" = '中文'",[{"num":"0","url":"http://zhan.cn.yahoo.com","id":"6","title":"中文"}],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select compiled from _actions where name = 'CNQuery' limit 1; ",[["[{\"title\":{\"default_value\":null,\"used\":1,\"name\":\"title\",\"label\":null,\"type\":\"literal\"}},[[[\"select * from \\\"Carrie\\\" where \\\"title\\\" = \",[\"title\",\"unknown\"]]]]]"]],"data"] [" update _actions set compiled = E'[{\"title\":{\"default_value\":null,\"name\":\"title\",\"used\":1,\"type\":\"literal\",\"label\":null}},[[\"POST\",[\"/=/action/CNQuery/~/~\"],[\"{\\\\\"title\\\\\": \",[\"title\",\"literal\"],\"}\"]]]]', definition = 'POST ''/=/action/CNQuery/~/~'' { title: $title }' where name = 'CNQuery'; ",1,"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select compiled from _actions where name = 'CNQuery' limit 1; ",[["[{\"title\":{\"default_value\":null,\"name\":\"title\",\"used\":1,\"type\":\"literal\",\"label\":null}},[[\"POST\",[\"/=/action/CNQuery/~/~\"],[\"{\\\"title\\\": \",[\"title\",\"literal\"],\"}\"]]]]"]],"data"] [" select compiled from _actions where name = 'CNQuery' limit 1; ",[["[{\"title\":{\"default_value\":null,\"name\":\"title\",\"used\":1,\"type\":\"literal\",\"label\":null}},[[\"POST\",[\"/=/action/CNQuery/~/~\"],[\"{\\\"title\\\": \",[\"title\",\"literal\"],\"}\"]]]]"]],"data"] [" select compiled from _actions where name = 'CNQuery' limit 1; ",[["[{\"title\":{\"default_value\":null,\"name\":\"title\",\"used\":1,\"type\":\"literal\",\"label\":null}},[[\"POST\",[\"/=/action/CNQuery/~/~\"],[\"{\\\"title\\\": \",[\"title\",\"literal\"],\"}\"]]]]"]],"data"] [" select compiled from _actions where name = 'CNQuery' limit 1; ",[["[{\"title\":{\"default_value\":null,\"name\":\"title\",\"used\":1,\"type\":\"literal\",\"label\":null}},[[\"POST\",[\"/=/action/CNQuery/~/~\"],[\"{\\\"title\\\": \",[\"title\",\"literal\"],\"}\"]]]]"]],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select compiled from _actions where name = 'CNQuery' limit 1; ",[["[{\"title\":{\"default_value\":null,\"name\":\"title\",\"used\":1,\"type\":\"literal\",\"label\":null}},[[\"POST\",[\"/=/action/CNQuery/~/~\"],[\"{\\\"title\\\": \",[\"title\",\"literal\"],\"}\"]]]]"]],"data"] [" update _actions set compiled = E'[{\"title\":{\"default_value\":null,\"used\":1,\"name\":\"title\",\"label\":null,\"type\":\"literal\"}},[[\"POST\",[\"/=/model/Carrie/~/~\"],[\"{\\\\\"title\\\\\": \",[\"title\",\"literal\"],\"}\"]]]]', definition = 'POST ''/=/model/Carrie/~/~'' { title: $title }' where name = 'CNQuery'; ",1,"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select compiled from _actions where name = 'CNQuery' limit 1; ",[["[{\"title\":{\"default_value\":null,\"used\":1,\"name\":\"title\",\"label\":null,\"type\":\"literal\"}},[[\"POST\",[\"/=/model/Carrie/~/~\"],[\"{\\\"title\\\": \",[\"title\",\"literal\"],\"}\"]]]]"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select count(*) from \"Carrie\" ",[["6"]],"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] [" select a.attname as name from pg_catalog.pg_attribute a where a.attnum > 0 and not a.attisdropped and a.attname <> 'id' and a.attrelid = (select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relname ='Carrie' and n.nspname = 'tester') order by a.attnum ",[["title"],["url"],["num"]],"data"] ["insert into \"Carrie\" (\"title\") values ('英文');\n",1,"data"] ["select max(id) from \"Carrie\"",[["7"]],"data"] ["select nspname from pg_namespace where nspname = 'tester' limit 1;\n",1,"data"] [" select c.oid from pg_catalog.pg_class c left join pg_catalog.pg_namespace n on n.oid = c.relnamespace where c.relkind in ('r','') and n.nspname = 'tester' and pg_catalog.pg_table_is_visible(c.oid) and substr(c.relname,1,1) <> '_' and c.relname = 'Carrie' limit 1 ",[["946470"]],"data"] ["select * from \"Carrie\" where \"title\" = '英文' limit 200;\n",[{"num":null,"url":null,"id":"7","title":"英文"}],"data"]