similar to: Booleans, :conditions and Sqlite

Displaying 20 results from an estimated 20000 matches similar to: "Booleans, :conditions and Sqlite"

2009 Jan 05
2
How do booleans work?
I''m a little confused as to how booleans work in Rails. Which is better in the database? boolean or int(1)? True == 1 and False == 0, right? Using SQLite, I tried to set a value to true inside the database but it gave me an error. MySql didn''t, so I had to switch to int(1) for it to work. Is this just how it is? --~--~---------~--~----~------------~-------~--~----~ You received
2006 Aug 20
1
sorting with booleans
Hi i have a column in my ferret model called sponsored. It is a boolean and i want to order the results by sponsored and date registered. At the moment it is not managing to sort the booleans. I tried declaring this in my model but it seems to have had no effect. def false.<=>(o) o ? -1 : 0 end def true.<=>(o) !o ? 1 : 0 end I''m using the acts_as_ferret plugin. below
2013 Nov 14
1
Dovecot antispam unable to call dspam since dovecot upgrade to 2.X
Hello, Running Gentoo AMD64 2013 with postfix, mysql, dovecot and dspam, i finally upgraded to dovecot 2.X. I'm running dovecot 2.2.6, dspam 3.10.2-r1 and dovecot-antispam-2.0_pre20130429. My DSPAM configuration hasn't changed between dovecot 1.X and 2.X. When i'm moving a mail to or from the Spam folder, Igot this error in my logs : Nov 14 10:33:25 srv1 dovecot: imap(ghilt at
2005 Dec 17
1
lost in an ActiveRecord::StatementInvalid
I have an error I don''t know how to debug. I am adding the login suport in Depot (the example in the RoR book) and LoginController#add_user throws ActiveRecord::StatementInvalid in an innocent /login/add_user GET request. The trace goes down to a call to SQLiteAdapter#table_structure, and the source code suggests what''s happening is that "PRAGMA
2012 Mar 25
2
Hiera: Bug with false booleans
Hi, I''ve just run into a small glitch with Hiera. I have a YAML file that has a definition like this: puppet_agent_splay: false but the run fails because of "err: Could not find data item puppet_agent_splay in any Hiera data file and no default supplied at /puppet/modules/puppet/manifests/agent/config.pp:6 on node slave1.local" Digging into this it turns out that lookup in
2015 Aug 17
0
CESA-2015:1634 Moderate CentOS 6 sqlite Security Update
CentOS Errata and Security Advisory 2015:1634 Moderate Upstream details at : https://rhn.redhat.com/errata/RHSA-2015-1634.html The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) i386: 2764e452be02a51c8b3d271be95f244637de6d9bb673f767854cffe7bac683bb lemon-3.6.20-1.el6_7.2.i686.rpm
2006 Oct 10
1
Python/sqlite date time problems.
Bear with me, this is CentOS related. :) I have a python CGI that's behaving weirldy on Whitebox systems that've been switched over to CentOS 4 (ages ago, no other problems to speak of aside from this one). I've broken the problem down to a minimal test case... 1. Create a small database # sqlite3 /tmp/testcase.db 'CREATE TABLE testtable ( date date primary key unique, name
2006 Jan 31
0
"cannot start a transaction within a transaction" sqlite error on OS X Tiger but not Windows
I''ve been editing a rails app on Windows for a little while now. I just checked it into source control and started editing on my iMac. Everything seems to run normally, except that when I attempt to modify the database in any way (I''m running sqlite), I get a weird error: "cannot start a transaction within a transaction"
2007 Dec 07
0
SQLiteDF SQLITE ERROR after attach
Dear list, i have installed SQLiteDF (and SQlite 3.5.3 too) After the suggested dataframe generation iris.sdf <- sqlite.data.frame(iris) i have close R and than restart it for verify the correct load of dataframe : the file data1 is saved in the usual folder .SQLiteDF after the command : attachSdf("c:/R/Report/.SQLiteDF/data1.db","iris.sdf") R give this error
2013 Jul 18
0
CEBA-2013:1091 CentOS 5 sqlite Update
CentOS Errata and Bugfix Advisory 2013:1091 Upstream details at : https://rhn.redhat.com/errata/RHBA-2013-1091.html The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) i386: 96179f02c850f97259618f1dd3a80cc6d12b80660625dcbd6e089ccf51e50d6c sqlite-3.3.6-7.i386.rpm d78c3b102a7508754ecb5052b1da6a86de47a7b23590e3eef56164d9f3b74566
2015 Aug 17
0
CESA-2015:1635 Moderate CentOS 7 sqlite Security Update
CentOS Errata and Security Advisory 2015:1635 Moderate Upstream details at : https://rhn.redhat.com/errata/RHSA-2015-1635.html The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) x86_64: 172f48aba58c71b0a3c41bd8c0a459ec91a8b01f619cf118c4e64549b7e6776b lemon-3.7.17-6.el7_1.1.x86_64.rpm
2020 Jan 28
0
CESA-2020:0227 Important CentOS 7 sqlite Security Update
CentOS Errata and Security Advisory 2020:0227 Important Upstream details at : https://access.redhat.com/errata/RHSA-2020:0227 The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) x86_64: 4e7b3e26e7960631fa1b70b58d3d363b51b0f9bee514cdd277c377750d976dd1 lemon-3.7.17-8.el7_7.1.x86_64.rpm
2012 Mar 01
1
CentOS-5 - Need help sourcing an SQLite-3.6.16 or later rpm
CentOS-5.7 SQLite-3.6.6 Ruby on Rails 3.1 Ruby-1.8.7 I have a situation wherein the version of SQLite-3 on CentOS-5 is too 'old' for the Ruby language sqlite3 DBMS adapter to successfully build against. I managed to obtain an rpm for ruby-1.8.7 but I cannot find one for sqlite-3.6.16 or later. Does anyone here have a lead on where such a beast, including the sqlite development headers,
2019 Jan 02
0
Re: [PATCH nbdkit] server: Use bool for types which are really booleans.
On 1/1/19 12:21 PM, Richard W.M. Jones wrote: > For mainly historical reasons we tended to use int to store boolean > values. However using bool is probably safer in some corner cases > (eg. ‘v == true’ can fail badly if v is an int, but works for bool). The problems only occur when v is an int and set to something other than 0 or 1. But yes, in general using the bool type is worth
2009 Jun 29
1
php5 and sqlite
Is there any reason (besides upstream does it) to compile php5 with --without-sqlite in CentOS5 ? Would it conflict with the sqlite that yum needs? Is there a repo (centosplus, rpmforge...) having a php5 and sqlite enabled ? I can only find older mails that seem to imply it does not harm to include sqlite (and some which seem to imply the contrary as well, but without any facts) but I can find
2011 Dec 12
0
yum - sqlite SIGSEVG
I've got a CentOS 6.1 x86_64 VM running atop CentOS 6.1 x86_64 KVM host. The VM is in production, so any fix needs to be fairly non-intrusive. In the VM, yum consistently segfaults when reading non-base repositories. The problem appears to be related to the faulty creation of /var/cache/yum/x86_64/<<reponame>>/primary.xml.gz.sqlite The latest installment of this problem
2015 Jul 07
0
What database should I use, for simple data storing? SQLite or the buitin one?
I believe that Asterisk 1.8 and older uses the BerkeleyDB for Asterisk's internal database (AKA the Astdb) and in newer versions use SQLite. However, the basic functionality is the same. Whether you use the Astdb or MySQL really depends on what you want to do with it. The AstDB is not a relational database like MySQL, it simply a key/value store. If you can get away with that, and you need
2014 Jul 08
1
Trigger for using an sqlite dictionary for quota
Hi, I'm using Dovecot 2.0.9, and was trying to set up a dictionary process to use an sqlite database for quota management. The wiki page has examples for MySQL and PostgreSQL: http://wiki2.dovecot.org/Quota/Dict For sqlite, a trigger needs to be created to get it to work. But I was not sufficiently skilled in sqlite to adapt the PostgreSQL trigger (given on the above URL) for use. Nor
2010 Aug 05
1
dovecot 2.0 rc4, expire, sqlite
Hello, I will use expire like described within wiki2.dovecot.org/Plugins/Expire with sqlite for a folder AutoCleanSpam. If I copy a message (with TB) into that folder, I get an error if there exists no entry for that user and that folder within the database: dict: Error: sqlite: exec(INSERT INTO expires (expire_stamp,username,mailbox) VALUES
2005 Apr 15
1
How can I change SQLite cache size for R session?
How can I change SQLite cache size for R session? SQLite cache size can be set by a pragma, for the duration of the session - or by default. .pragma cache_size .pragma default_cache_size my questions are about RSQLite, version 0.4, running on Windows: - what is the cache size set to when SQLite is invoked from R? - if the page_size is set to 4096 what will be the cache size in bytes