Commit Graph

8 Commits

Author SHA1 Message Date
108dc596e3 optimizer: address comment. 2015-12-18 13:49:45 +08:00
fbc938e7b6 optimizer: address comment 2015-12-17 14:56:11 +08:00
2b58058501 optmizer: address comment 2015-12-17 10:20:20 +08:00
2e1cf26a32 optimizer: typeInferrer supports more expression.
This is require for implementing prepared statement, because binary protocol depends more
on the result field type to decode value, we have to correctly set the result field type.

For statement like 'select ?', the type of the field is unknown until we execute the statement with argument,
If the field type of  parameter marker `?' is not set properly, client will not be able to read the value.
2015-12-16 18:35:45 +08:00
4436aff284 ast: use IsConstant function
address comment
2015-12-14 10:37:34 +08:00
16757fd9b0 optimizer: add comment. use constant flag. 2015-12-14 10:37:34 +08:00
c970ff6d4d ast: move flag setter to ast 2015-12-14 10:37:34 +08:00
429716fc37 optimizer, executor: address comment. 2015-12-07 16:16:34 +08:00