Skip to content

Commit 96cd22d

Browse files
committed
provide more complete description of typed string
1 parent 912019b commit 96cd22d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ast/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ pub enum Expr {
205205
Nested(Box<Expr>),
206206
/// A literal value, such as string, number, date or NULL
207207
Value(Value),
208-
/// A structure containing a `String` as well as an associated data type.
208+
/// A constant of form `<data_type> 'value'`.
209+
/// This can represent ANSI SQL `DATE`, `TIME`, and `TIMESTAMP` literals (such as `DATE '2020-01-01'`),
210+
/// as well as constants of other types (a non-standard PostgreSQL extension).
209211
TypedString { data_type: DataType, value: String },
210212
/// Scalar function call e.g. `LEFT(foo, 5)`
211213
Function(Function),

0 commit comments

Comments
 (0)