~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.2.11) (2.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20120619104649-9ij634mxm4x8pp4l
Tags: 1:7.1.36-stable-1ubuntu1
* Merge from Debian unstable. (LP: #987575)
  Remaining changes:
  - Added upstart script.
* debian/drizzle.upstart: dropped logger since upstart logs job
  output now.

Show diffs side-by-side

added added

removed removed

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