mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 08:35:22 +00:00
Regression test expanded to include the failure path for DELETE
This commit is contained in:
parent
db173d49d7
commit
f8768830c2
@ -81,13 +81,13 @@ family1,series1,1970-01-01T00:00:00.007Z,cloudy,27.9
|
||||
555,1.1,10.0,0.01123
|
||||
555,1.1,10.0,0.01123
|
||||
"}}.
|
||||
{{command, "CREATE TABLE deletetable ( myfamily varchar not null, myseries varchar not null, time timestamp not null, weather varchar not null, temperature double, PRIMARY KEY ((myfamily, myseries, quantum(time, 15, 'm')), myfamily, myseries, time));"}, {result, ""}}.
|
||||
{{command, "insert into deletetable (myfamily, myseries, time, weather, temperature) values ('berl', 'saf', 3, 'safa', 3.3);"}, {result, ""}}.
|
||||
{{command, "select * from deletetable where myfamily = 'berl' and myseries = 'saf' and time > 1 and time < 5;"}, {result, "+--------+--------+------------------------+-------+-----------+
|
||||
|myfamily|myseries| time |weather|temperature|
|
||||
+--------+--------+------------------------+-------+-----------+
|
||||
| berl | saf |1970-01-01T00:00:00.003Z| safa | 3.3 |
|
||||
+--------+--------+------------------------+-------+-----------+
|
||||
{{command, "CREATE TABLE deletetable ( myfamily varchar not null, myseries varchar not null, time timestamp not null, weather varchar not null, temperature double, PRIMARY KEY ((myfamily, myseries, quantum(time, 15, 'm')), myfamily, myseries, time));"}, {result, "Table deletetable successfully created and activated."}}.
|
||||
{{command, "insert into deletetable (myfamily, myseries, time, weather, temperature) values ('berl', 'saf', 3, 'safa', 3.3);"}, {result, "Inserted 1 row."}}.
|
||||
{{command, "select * from deletetable where myfamily = 'berl' and myseries = 'saf' and time > 1 and time < 5;"}, {result, "myfamily,myseries,time,weather,temperature\nberl,saf,1970-01-01T00:00:00.003Z,safa,3.3\n"
|
||||
}}.
|
||||
{{command, "delete from deletetable where myfamily = 'berl' and myseries = 'saf' and time = 3;"}, {result, ""}}.
|
||||
{{command, "select * from deletetable where myfamily = 'berl' and myseries = 'saf' and time > 1 and time < 5;"}, {result, "No rows returned."}}.
|
||||
{{command, "delete from deletetable where myfamily = 'berl' and myseries = 'saf' and timebob = 3;"}, {result, "Error (1009): Unable to get delete key: [\"invalid key\"]"}}.
|
||||
{{command, "SHOW CREATE TABLE GeoCheckin2;\n"}, {result, "CREATE TABLE GeoCheckin2 (region VARCHAR NOT NULL,
|
||||
state VARCHAR NOT NULL,
|
||||
time TIMESTAMP NOT NULL,
|
||||
@ -237,7 +237,4 @@ extension name and function name like 'help history clear_history;'
|
||||
For SQL help type 'help SQL'"}}.
|
||||
{{command, "help history h; "}, {result, "You can rerun a command by finding the command in the history list
|
||||
with `show_history;` and using the number next to it as the argument
|
||||
to `history` or `h`: `history 3;` or `h 3;` for example.
|
||||
"}}.
|
||||
{{command, "delete from deletetable where myfamily = 'berl' and myseries = 'saf' and time = 3;"}, {result, ""}}.
|
||||
{{command, "select * from deletetable where myfamily = 'berl' and myseries = 'saf' and time > 1 and time < 5;"}, {result, ""}}.
|
||||
to `history` or `h`: `history 3;` or `h 3;` for example."}}.
|
||||
|
Loading…
Reference in New Issue
Block a user