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
d8b053d3
Commit
d8b053d3
authored
Oct 10, 2020
by
IKEDA Soji
Browse files
Oracle: ORA-00904: "EMAIL": invalid identifier (#1013)
parent
0fa53762
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/List.pm
View file @
d8b053d3
...
...
@@ -2706,19 +2706,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
))
{
...
...
@@ -3259,12 +3256,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