[Rt-commit] r3888 - in Jifty-DBI/trunk: . lib/Jifty/DBI/Handle

ruz at bestpractical.com ruz at bestpractical.com
Sun Sep 25 04:59:34 EDT 2005


Author: ruz
Date: Sun Sep 25 04:59:34 2005
New Revision: 3888

Modified:
   Jifty-DBI/trunk/   (props changed)
   Jifty-DBI/trunk/lib/Jifty/DBI/Handle/SQLite.pm
Log:
 r2507 at cubic-pc:  cubic | 2005-09-24 13:33:19 +0400
 database version implementation


Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Handle/SQLite.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Handle/SQLite.pm	(original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Handle/SQLite.pm	Sun Sep 25 04:59:34 2005
@@ -20,8 +20,19 @@
 
 =head1 METHODS
 
+=head2
+
+Returns the version of the SQLite library which is used, e.g., "2.8.0".
+SQLite can only return short variant.
+
 =cut
 
+sub database_version {
+    my $self = shift;
+    return '' unless $self->dbh;
+    return $self->dbh->{sqlite_version} || '';
+}
+
 =head2 insert
 
 Takes a table name as the first argument and assumes that the rest of the arguments


More information about the Rt-commit mailing list