Page MenuHomeSolus

Update perl-dbd-sqlite 1.62
ClosedPublic

Authored by kyrios123 on Dec 30 2018, 8:25 PM.
Tags
None
Referenced Files
F11010366: D4886.diff
Thu, Aug 3, 2:23 AM
F10868949: D4886.id12007.diff
Jun 18 2023, 1:30 AM
F10862453: D4886.id11946.diff
Jun 16 2023, 8:49 PM
F10858009: D4886.diff
Jun 15 2023, 1:31 PM
F10806126: D4886.diff
May 29 2023, 11:40 PM
F10805953: D4886.diff
May 29 2023, 10:54 PM
Subscribers

Details

Summary
  • Switched to a production version
  • Added sqlite_db_config method and new constants for it
  • Added sqlite_defensive option to disallow dangerous SQLite features
  • Exposed some of the hidden extended result codes

Signed-off-by: Pierre-Yves <pyu@riseup.net>

Test Plan
  • Unit tests are OK
#!/usr/bin/perl

use DBI;
use strict;

my $driver   = "SQLite";
my $database = "test.db";
my $dsn = "DBI:$driver:dbname=$database";
my $userid = "myuser";
my $password = "dummyStupidPassword";
my $dbh = DBI->connect($dsn, $userid, $password, { RaiseError => 1 })
   or die $DBI::errstr;
print "Opened database successfully\n";

my $stmt = qq(CREATE TABLE DUMMY
   (ID INT PRIMARY KEY     NOT NULL,
      TEXTFLD        TEXT    NOT NULL,
      INTFLD         INT     NOT NULL,
      CHARFLD        CHAR(50),
      REALFLD        REAL););

my $rv = $dbh->do($stmt);
if($rv < 0) {
   print $DBI::errstr;
} else {
   print "Table created successfully\n";
}
$dbh->disconnect();

Diff Detail

Repository
R3386 perl-dbd-sqlite
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Dec 31 2018, 5:08 PM
This revision was automatically updated to reflect the committed changes.