~drizzle-trunk/drizzle/jenkins-Drizzle-Builder-48

« back to all changes in this revision

Viewing changes to plugin/json_server/tests/t/basic.test

added:
  plugin/json_server/http_server.cc
  plugin/json_server/http_server.h
modified:
  plugin/json_server/docs/index.rst
  plugin/json_server/json_server.cc
  plugin/json_server/plugin.ini
  plugin/json_server/tests/r/basic.result
  plugin/json_server/tests/t/basic.test
pending merge tips: (use -v to see all merge revisions)
  srivastavamohit91... 2012-07-17 changes in _api01

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
create table t1 (a int primary key auto_increment, b varchar(100));
2
2
--replace_result $JSON_SERVER_PORT PORT
3
 
--eval select http_post("http://localhost:$JSON_SERVER_PORT/0.1/sql", 'select * from t1;');
 
3
--eval select http_post("http://localhost:$JSON_SERVER_PORT/sql", 'select * from t1;');
4
4
insert into t1 (b) values ("from MySQL protocol");
5
5
--replace_result $JSON_SERVER_PORT PORT
6
 
--eval select http_post('http://localhost:$JSON_SERVER_PORT/0.1/sql', 'select * from t1;');
 
6
--eval select http_post('http://localhost:$JSON_SERVER_PORT/sql', 'select * from t1;');
7
7
--replace_result $JSON_SERVER_PORT PORT
8
 
--eval select http_post('http://localhost:$JSON_SERVER_PORT/0.1/sql', 'insert into t1 (b) values (\'from http\');');
 
8
--eval select http_post('http://localhost:$JSON_SERVER_PORT/sql', 'insert into t1 (b) values (\'from http\');');
9
9
SELECT * from t1;
10
10
drop table t1;
11
11