File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
describe SQLTree ::Node ::UpdateQuery do
4
4
5
- it "should parse a delete query without WHERE clause correctly" do
5
+ it "should parse an UPDATE query without WHERE clause correctly" do
6
6
update = SQLTree ::Node ::UpdateQuery [ "UPDATE table SET field1 = 1, field2 = 5 - 3" ]
7
7
update . table . should == SQLTree ::Node ::TableReference . new ( "table" )
8
8
update . updates . should have ( 2 ) . items
13
13
update . where . should be_nil
14
14
end
15
15
16
- it "should parse a delete query without WHERE clause correctly" do
16
+ it "should parse an UPDATE query with WHERE clause correctly" do
17
17
update = SQLTree ::Node ::UpdateQuery [ "UPDATE table SET field = 1 WHERE id = 17" ]
18
18
update . table . should == SQLTree ::Node ::TableReference . new ( "table" )
19
19
update . updates . should have ( 1 ) . item
You can’t perform that action at this time.
0 commit comments