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

Contradicting Assumptions about order of value and label in SQL Statement #5

Open
frwg opened this issue Aug 25, 2022 · 1 comment
Open

Comments

@frwg
Copy link
Contributor

frwg commented Aug 25, 2022

@trigger_error("Sql for select item options is single-column. Use a statement that generates a value (first) and label (second).", E_USER_DEPRECATED);

Statement contradicts lines 146-149, which assume that label is the first element while value is the second one.

@werrolf
Copy link
Contributor

werrolf commented Sep 20, 2022

Fixed in 1.2.7 and 2.0.5.

These versions also introduced support for direct column / expression aliases in select item choice queries for general sanity :]

SELECT
   'does not matter' AS "first",
   CONCAT_WS('Choice text:', "choice_label") AS label,
   id AS value,
  'does not matter either' AS "last"
FROM choices_table;

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

2 participants