[Jifty-commit] r1652 - jifty/trunk/lib/Jifty/Script
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Jul 22 23:53:29 EDT 2006
Author: ishigaki
Date: Sat Jul 22 23:53:25 2006
New Revision: 1652
Modified:
jifty/trunk/lib/Jifty/Script/Schema.pm
Log:
* Win32 complains when you try to unlink open DB
Modified: jifty/trunk/lib/Jifty/Script/Schema.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Script/Schema.pm (original)
+++ jifty/trunk/lib/Jifty/Script/Schema.pm Sat Jul 22 23:53:25 2006
@@ -453,6 +453,8 @@
if ( $self->{'print'} ) {
print "DROP DATABASE $database;\n";
} elsif ( $driver eq 'SQLite' ) {
+ # Win32 complains when you try to unlink open DB
+ $handle->disconnect if $^O eq 'MSWin32';
unlink($database);
} else {
$handle->simple_query("DROP DATABASE $database");
More information about the Jifty-commit
mailing list