Skip Menu |
 

This queue is for tickets about the DBD-SQLite CPAN distribution.

Report information
The Basics
Id: 90211
Status: resolved
Priority: 0/
Queue: DBD-SQLite

People
Owner: Nobody in particular
Requestors: felix.li.tfbo [...] statefarm.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Error in documentation
Date: Sun, 10 Nov 2013 21:12:44 +0000
To: "bug-DBD-SQLite [...] rt.cpan.org" <bug-DBD-SQLite [...] rt.cpan.org>
From: Felix Li <felix.li.tfbo [...] statefarm.com>
Download (untitled) / with headers
text/plain 803b
Hi, I think there are two errors in Here is a very short example of using FTS : (Short introduction to FTS) $dbh->do(<<"") or die DBI::errstr; CREATE VIRTUAL TABLE fts_example USING fts4(content) my $sth = $dbh->prepare("INSERT INTO fts_example(content) VALUES (?))"); $sth->execute($_) foreach @docs_to_insert; my $results = $dbh->selectall_arrayref(<<""); SELECT docid, snippet(content) FROM fts_example WHERE content MATCH 'foo' I think that my $sth = $dbh->prepare("INSERT INTO fts_example(content) VALUES (?))"); should be my $sth = $dbh->prepare("INSERT INTO fts_example(content) VALUES (?)"); and SELECT docid, snippet(content) FROM fts_example WHERE content MATCH 'foo' should be SELECT docid, snippet(fts_example) FROM fts_example WHERE content MATCH 'foo' Thanks!
Applied to the master: https://github.com/DBD-SQLite/DBD-SQLite/commit/c8116019758a7b53d647edb55de3b64805a4d400 Thanks. On Mon Nov 11 06:12:55 2013, felix.li.tfbo@statefarm.com wrote: Show quoted text
> Hi, > > I think there are two errors in > > Here is a very short example of using FTS : (Short introduction to > FTS) > > $dbh->do(<<"") or die DBI::errstr; > CREATE VIRTUAL TABLE fts_example USING fts4(content) > > my $sth = $dbh->prepare("INSERT INTO fts_example(content) VALUES > (?))"); > $sth->execute($_) foreach @docs_to_insert; > > my $results = $dbh->selectall_arrayref(<<""); > SELECT docid, snippet(content) FROM fts_example WHERE content MATCH > 'foo' > > I think that > my $sth = $dbh->prepare("INSERT INTO fts_example(content) VALUES > (?))"); > should be > my $sth = $dbh->prepare("INSERT INTO fts_example(content) VALUES > (?)"); > > and > SELECT docid, snippet(content) FROM fts_example WHERE content MATCH > 'foo' > should be > SELECT docid, snippet(fts_example) FROM fts_example WHERE content > MATCH 'foo' > > Thanks!
Closed as DBD::SQLite 1.41_04 with this fix was released. Thanks.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.