We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 075a163 commit feb718dCopy full SHA for feb718d
spec/unit/update_query_spec.rb
@@ -2,7 +2,7 @@
2
3
describe SQLTree::Node::UpdateQuery do
4
5
- it "should parse a delete query without WHERE clause correctly" do
+ it "should parse an UPDATE query without WHERE clause correctly" do
6
update = SQLTree::Node::UpdateQuery["UPDATE table SET field1 = 1, field2 = 5 - 3"]
7
update.table.should == SQLTree::Node::TableReference.new("table")
8
update.updates.should have(2).items
@@ -13,7 +13,7 @@
13
update.where.should be_nil
14
end
15
16
+ it "should parse an UPDATE query with WHERE clause correctly" do
17
update = SQLTree::Node::UpdateQuery["UPDATE table SET field = 1 WHERE id = 17"]
18
19
update.updates.should have(1).item
0 commit comments