summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-16 02:42:37 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-16 02:42:37 +0100
commit2e865375cbc90bdc25c39adc28a14da54e223fcc (patch)
treebf3ea78711ba7f293ef964f5a2779ca23fa5b8cf /Bugzilla
parent7b48d43dcd9b851d7175b7506b7f4ba91ead0366 (diff)
downloadbugzilla-2e865375cbc90bdc25c39adc28a14da54e223fcc.tar.gz
bugzilla-2e865375cbc90bdc25c39adc28a14da54e223fcc.tar.xz
Bug 619581: Make contrib/bzdbcopy.pl work again, and also make it work with
SQLite. r=mkanat, a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DB/Sqlite.pm16
1 files changed, 15 insertions, 1 deletions
diff --git a/Bugzilla/DB/Sqlite.pm b/Bugzilla/DB/Sqlite.pm
index c518486ae..2c3448acf 100644
--- a/Bugzilla/DB/Sqlite.pm
+++ b/Bugzilla/DB/Sqlite.pm
@@ -235,9 +235,23 @@ sub sql_string_until {
return "SUBSTR($string, 1, $position - 1)"
}
+###############
+# bz_ methods #
+###############
+
# XXX This needs to be implemented.
sub bz_explain { }
+sub bz_table_list_real {
+ my $self = shift;
+ my @tables = $self->SUPER::bz_table_list_real(@_);
+ # SQLite includes a sqlite_sequence table in every database that isn't
+ # one of our real tables. We exclude any table that starts with sqlite_,
+ # just to be safe.
+ @tables = grep { $_ !~ /^sqlite_/ } @tables;
+ return @tables;
+}
+
1;
__END__
@@ -252,4 +266,4 @@ This module overrides methods of the Bugzilla::DB module with a
SQLite-specific implementation. It is instantiated by the Bugzilla::DB module
and should never be used directly.
-For interface details see L<Bugzilla::DB> and L<DBI>. \ No newline at end of file
+For interface details see L<Bugzilla::DB> and L<DBI>.