-
Notifications
You must be signed in to change notification settings - Fork 353
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
Stickers and integer values #1894
Comments
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Nov 7, 2023
The two new compare operators "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int This is an attempt to fix MusicPlayerDaemon#1894.
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Nov 7, 2023
The two new compare operators "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int This is an attempt to fix MusicPlayerDaemon#1894.
#1895 implements the cast solution. |
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Nov 8, 2023
The two new compare operators "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int This is an attempt to fix MusicPlayerDaemon#1894.
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Nov 23, 2023
The two new compare operators "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int This is an attempt to fix MusicPlayerDaemon#1894.
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Nov 23, 2023
The two new compare operators "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int This is an attempt to fix MusicPlayerDaemon#1894.
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Dec 12, 2023
The two new compare operators "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int This is an attempt to fix MusicPlayerDaemon#1894.
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Dec 12, 2023
The two new compare operators "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int Closes MusicPlayerDaemon#1894
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Dec 20, 2023
The two new compare operators "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int Closes MusicPlayerDaemon#1894
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Dec 21, 2023
The two new compare operators "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int Closes MusicPlayerDaemon#1894
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Jan 3, 2024
The two new compare operators "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int Closes MusicPlayerDaemon#1894
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Jan 7, 2024
The two new compare operators "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int Closes MusicPlayerDaemon#1894
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Jan 16, 2024
The three new compare operators "eq", "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int Closes MusicPlayerDaemon#1894
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Jan 16, 2024
The three new compare operators "eq", "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int Closes MusicPlayerDaemon#1894
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Jan 16, 2024
The three new compare operators "eq", "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int Closes MusicPlayerDaemon#1894
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Jan 18, 2024
The three new compare operators "eq", "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int Closes MusicPlayerDaemon#1894
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Feb 15, 2024
The three new compare operators "eq", "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int Closes MusicPlayerDaemon#1894
jcorporation
added a commit
to jcorporation/MPD
that referenced
this issue
Feb 15, 2024
The three new compare operators "eq", "gt" and "lt" are casting the values to int. Sort supports: - uri: sort by uri - value: sort by value as string - value_int: casts value to int Closes MusicPlayerDaemon#1894
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use stickers to save song playback statistics and ratings. All this values are integers, e.g. the playCount. MPD can save values in the sticker database only as string. Converting the integers to strings and saving them is not the problem.
The problem exists in the query interface:
=
operator works as expected for integers.>
and<
this does not work as an user will expect this.Example:
468 48 53
as values for a sticker namedplayCount
.select value from sticker where name="playCount" and value > 5;
53
as the operator does not work in a numeric contextPossible solutions for this:
select value from sticker where name="elapsed" and cast(value as int) > 5
int
column to the schemaI am happy to contribute code to solve the problem.
@MaxKellermann: Which solution would you prefer?
The text was updated successfully, but these errors were encountered: