Commit Graph

2 Commits

Author SHA1 Message Date
d0999dcf49 optimizer: use HasLen checker. 2015-12-18 14:37:17 +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