{
type => 'SelectComponent',
value => {
- type => 'Identifier',
- element1 => '*',
+ type => 'Operator',
+ op => 'COUNT',
+ args => [
+ {
+ type => 'Identifier',
+ element1 => '*',
+ },
+ ],
},
},
],
},
}
-=item SELECT COUNT(*) FROM foo WHERE ( name = 'John' AND title = 'Mr' ) OR abbrev = 'Dr'
+=item SELECT COUNT(DISTINCT(*)) FROM foo WHERE ( name = 'John' AND title = 'Mr' ) OR abbrev = 'Dr'
{
type => 'select',
ast_version => 0.0001,
select => [
- {
+ {
type => 'SelectComponent',
value => {
- type => 'Identifier',
- element1 => '*',
+ type => 'Operator',
+ op => 'COUNT',
+ args => [
+ {
+ type => 'Operator',
+ op => 'DISTINCT',
+ args => [
+ {
+ type => 'Identifier',
+ element1 => '*',
+ },
+ ],
+ },
+ ],
},
},
],