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

SimpleName->getFullName() #16

Open
staabm opened this issue Feb 14, 2023 · 1 comment
Open

SimpleName->getFullName() #16

staabm opened this issue Feb 14, 2023 · 1 comment

Comments

@staabm
Copy link

staabm commented Feb 14, 2023

when running the query SELECT COALESCE(null, gesperrt, freigabe1u1) from ada thru the ast, I get the following function call expression:

grafik

the SimpleName of the arguments atm only contain a local name, but not a full qualified name including the reference to the table like ada.gesperrt (or maybe even prefixed with the database name included).

I guess thats something SimpleName->getFullName() should return, but is not yet implemented, right?

public function getFullName(): string
{
return $this->name;
}

@paranoiq
Copy link
Member

paranoiq commented Feb 18, 2023

hi. for now you have to resolve things like this manually. the nodes currently are not bi-directionally interlinked (parents, siblings etc.) so they cannot give you this information, but it is planned.

also e.g. in case of SELECT a, b FROM c, d external context (metadata for the tables) is needed to resolve from which table the columns originate

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

No branches or pull requests

2 participants