default modifier: support function-call syntax and quoted string literals#5
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/headercat/erdn-lang/sessions/0427966f-a4d2-485a-81b6-64f12d226b10 Co-authored-by: nemorize <51209191+nemorize@users.noreply.github.com>
…otes Agent-Logs-Url: https://github.com/headercat/erdn-lang/sessions/c08688ca-bb4b-4840-99fe-0e31796505b3 Co-authored-by: nemorize <51209191+nemorize@users.noreply.github.com>
…ests Agent-Logs-Url: https://github.com/headercat/erdn-lang/sessions/3e1bf0e9-b31e-4020-b99f-e8242a120fcc Co-authored-by: nemorize <51209191+nemorize@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
nemorize
April 13, 2026 23:33
View session
🗂 ER Diagram Render✅ Tests passed —
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SQL function calls like
NOW()should not require quoting indefault(...). String typed values should carry their quotes in the AST. Two related fixes:Parser
TOKEN_STRINGcase — stores value with surrounding double quotes (e.g."active")IDENT— when followed by(), stores asNOW()instead of requiring"NOW()"Usage
Updated
.erdnfiles:default("NOW()")→default(NOW())website/syntax.md,website/guide.md,README.md: docs and examples updated to reflect both forms; syntax description now mentions function calls as a supported value kindTestParseDefaultFunctionCall; updatedTestParseDefaultModifierto use quoted string form