Commit 2a4dc2ed authored by IKEDA Soji's avatar IKEDA Soji
Browse files

SQLite: Add a view "dual" to make some SQL statements portable.

parent baed879a
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment