helenadeus / s3db

Automatically exported from code.google.com/p/s3db
0 stars 0 forks source link

S3QL documentation rule update #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the URL of your deployment?
localhost

What steps will reproduce the problem?
1.update rule query
2.bad documentation
3.

What is the expected output? What do you see instead?
error_code  message
0   rule updated

What version of the product are you using? On what operating system?
3.5.9
windows xp 32bit

Please provide any additional information below.
Documentation says:
Update  Where (Required)    Where (Optional)
rule    rule_id     subject, verb, object, notes, validation

but the query:
<S3QL><update>rule</update><where><rule_id>137</rule_id><notes>test</notes>
</where></S3QL>
doesn't work

It requires subject_id, verb_id, object_id as well to work:
<S3QL><update>rule</update><where><rule_id>137</rule_id><notes>test</notes>
<subject_id>76</subject_id><validation></validation><verb_id>80</verb_id><o
bject_id>134</object_id></where></S3QL>

Original issue reported on code.google.com by CajoSant...@gmail.com on 7 Apr 2010 at 10:31