~drizzle-trunk/drizzle/development

2283.4.9 by Stewart Smith
add JSON_SERVER_PORT to test-run.pl and dbqp. Make the basic json_server test actually test something useful, such as interaction between SQL from normal protocol and SQL from http
1
create table t1 (a int primary key auto_increment, b varchar(100));
2283.4.15 by Stewart Smith
use http_post() function to test json_server
2
--replace_result $JSON_SERVER_PORT PORT
3
--eval select http_post("http://localhost:$JSON_SERVER_PORT/0.1/sql", 'select * from t1;');
2283.4.9 by Stewart Smith
add JSON_SERVER_PORT to test-run.pl and dbqp. Make the basic json_server test actually test something useful, such as interaction between SQL from normal protocol and SQL from http
4
insert into t1 (b) values ("from MySQL protocol");
2283.4.15 by Stewart Smith
use http_post() function to test json_server
5
--replace_result $JSON_SERVER_PORT PORT
6
--eval select http_post('http://localhost:$JSON_SERVER_PORT/0.1/sql', 'select * from t1;');
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\');');
2283.4.9 by Stewart Smith
add JSON_SERVER_PORT to test-run.pl and dbqp. Make the basic json_server test actually test something useful, such as interaction between SQL from normal protocol and SQL from http
9
SELECT * from t1;
10
drop table t1;