agentm / project-m36

Project: M36 Relational Algebra Engine
The Unlicense
876 stars 47 forks source link

AtomFunctionExpr parse failure when using a relvar name with uppercase.. #243

Closed YuMingLiao closed 5 years ago

YuMingLiao commented 5 years ago
TutorialD (master/main): :showexpr s where status = max (s{status})
┌──────────┬────────┬───────────┬───────────────┐
│city::Text│s#::Text│sname::Text│status::Integer│
├──────────┼────────┼───────────┼───────────────┤
│"Athens"  │"S5"    │"Adams"    │30             │
│"Paris"   │"S3"    │"Blake"    │30             │
└──────────┴────────┴───────────┴───────────────┘
TutorialD (master/main): S := relation {tuple {a 3}}
TutorialD (master/main): :showexpr S
┌──────────┐
│a::Integer│
├──────────┤
│3         │
└──────────┘
TutorialD (master/main): :showexpr S where a = max ( S{a} )
____________________________________________________^
ERR:1:32:
unexpected '('
expecting end of input or operator
TutorialD (master/main): :showexpr S where a = max (S{a} )
____________________________________________________^
ERR:1:32:
unexpected '('
expecting end of input or operator
agentm commented 5 years ago

Oops- the capitalization rules in tutd were inconsistent. Thanks for the report!