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
2a4dc2ed
Commit
2a4dc2ed
authored
May 15, 2021
by
IKEDA Soji
Browse files
SQLite: Add a view "dual" to make some SQL statements portable.
parent
baed879a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/DatabaseDriver/SQLite.pm
View file @
2a4dc2ed
...
...
@@ -63,6 +63,8 @@ sub connect {
}
else
{
$self
->
__dbh
->
func
(
5000
,
'
busy_timeout
');
}
# Create a temoprarhy view "dual" for portable SQL statements.
$self
->
__dbh
->
do
(
q{CREATE TEMPORARY VIEW dual AS SELECT 'X' AS dummy;}
);
return
1
;
}
...
...
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