Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
27b86fa1
Commit
27b86fa1
authored
May 14, 2021
by
IKEDA Soji
Browse files
Don't add the email/user to netidmap_table if it has already been added (#1163)
parent
39e3006a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Robot.pm
View file @
27b86fa1
...
...
@@ -123,7 +123,15 @@ sub set_netidtoemail_db {
q{INSERT INTO netidmap_table
(netid_netidmap, serviceid_netidmap, email_netidmap,
robot_netidmap)
VALUES (?, ?, ?, ?)}
,
SELECT ?, ?, ?, ?
FROM dual
WHERE NOT EXISTS (
SELECT 1
FROM netidmap_table
WHERE netid_netidmap = ? AND serviceid_netidmap = ? AND
email_netidmap = ? AND robot_netidmap = ?
)}
,
$netid
,
$idpname
,
$email
,
$robot
,
$netid
,
$idpname
,
$email
,
$robot
)
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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