Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL: Behavior of uninitialized variables #1939

Open
gramian opened this issue Jan 30, 2025 · 0 comments
Open

SQL: Behavior of uninitialized variables #1939

gramian opened this issue Jan 30, 2025 · 0 comments

Comments

@gramian
Copy link
Collaborator

gramian commented Jan 30, 2025

ArcadeDB Version: 25.1.1

Using SQLscript, unset variables evaluate to their symbol name. Using:

CONSOLE.log $abc 

writes to the log:

$abc

Is this meant to be this way? This can be OK, like in Lisps.


A case that is then unexpected:

LET $test = $abc;
CONSOLE.log $test

writes to the log:

$test

This is strange as one would expect that $test is set to $abc and so $abc is written to the log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant