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

v.random: use unqualified names in db columns #2838

Merged
merged 4 commits into from
Feb 20, 2023

Conversation

marisn
Copy link
Contributor

@marisn marisn commented Feb 17, 2023

GUI passes fully qualified map names as input parameters but SQL drivers do not properly escape passed values thus causing an SQL error on @ symbol.
Fixes #2473

@marisn marisn added this to the 8.3.0 milestone Feb 17, 2023
vector/v.random/main.c Outdated Show resolved Hide resolved
Copy link
Contributor

@nilason nilason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@marisn marisn merged commit fc90bec into OSGeo:main Feb 20, 2023
@marisn marisn deleted the v_random_bug_2473 branch October 22, 2023 09:59
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
* v.random: use unqualified names in db columns

Fixes OSGeo#2473

* v.random: replace sprintf with snprintf

Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
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

Successfully merging this pull request may close these issues.

[Bug] v.random doesn't strip mapset from column names
2 participants