],
}
+=item * UPDATE foo SET col1 = 1
+
+ {
+ type => 'update',
+ ast_version => 0.0001,
+ tables => {
+ type => 'TableIdentifier',
+ value => {
+ type => 'Identifier',
+ element1 => 'foo',
+ },
+ },
+ set => [
+ {
+ type => 'SetComponent',
+ col => {
+ type => 'Identifier,
+ element1 => 'col1',
+ },
+ value => {
+ type => 'Number',
+ value => 1,
+ },
+ },
+ ],
+ }
+
=back
=head1 AUTHORS
This corresponds to the SET clause in an INSERT or UPDATE statement.
-A set clause is composed as follows:
+A set clause unit is an array of one or more SetComponent units.
- SetComponent := Identifier = Expression
+The hash for SetComponent unit is composed as follows:
- SetComponent [ , SetComponent ]*
+ {
+ type => 'SetComponent',
+ col => Identifier,
+ value => Expression,
+ }
=head3 columns
The hash for a rows clause is composed as follows:
{
- type => 'Rows',
start => Number,
count => Number,
}