Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
3ff0bc15
Unverified
Commit
3ff0bc15
authored
Oct 13, 2020
by
IKEDA Soji
Committed by
GitHub
Oct 13, 2020
Browse files
Merge pull request #1014 from ikedas/issue-1013 by ikedas
Oracle: ORA-00904: "EMAIL": invalid identifier (#1013)
parents
3f44b653
d8b053d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/List.pm
View file @
3ff0bc15
...
...
@@ -2228,19 +2228,16 @@ sub get_first_list_member {
(
$selection
||
'');
## SORT BY
if
(
$sortby
eq
'
email
')
{
## Default SORT
$statement
.=
'
ORDER BY email
';
}
elsif
(
$sortby
eq
'
date
')
{
$statement
.=
'
ORDER BY date DESC
';
}
elsif
(
$sortby
eq
'
sources
')
{
$statement
.=
"
ORDER BY subscribed DESC,id
";
}
elsif
(
$sortby
eq
'
name
')
{
$statement
.=
'
ORDER BY gecos
';
}
$statement
.=
'
ORDER BY
'
.
(
{
email
=>
'
user_subscriber
',
date
=>
'
date_epoch_subscriber DESC
',
sources
=>
'
subscribed_subscriber DESC, inclusion_label_subscriber ASC
',
name
=>
'
comment_subscriber
',
}
->
{
$sortby
}
||
'
user_subscriber
'
);
push
@sth_stack
,
$sth
;
unless
(
$sdm
and
$sth
=
$sdm
->
do_query
(
$statement
))
{
...
...
@@ -2668,12 +2665,13 @@ sub get_members {
if
(
$order
)
{
$order_by
=
'
ORDER BY
'
.
(
{
email
=>
'
email
',
date
=>
'
date DESC
',
sources
=>
'
subscribed DESC, inclusion_label ASC
',
name
=>
'
gecos
',
{
email
=>
'
user_subscriber
',
date
=>
'
date_epoch_subscriber DESC
',
sources
=>
'
subscribed_subscriber DESC, inclusion_label_subscriber ASC
',
name
=>
'
comment_subscriber
',
}
->
{
$order
}
||
'
email
'
||
'
user_subscriber
'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment