realbasic-nug
[Top] [All Lists]

Re: REALSQLDatabase and Boolean values

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: REALSQLDatabase and Boolean values
From: "Dennis Birch" <dennisbirch at gmail dot com>
Date: Fri, 29 Jun 2007 17:48:44 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <mailman dot 29953 dot 1183148084 dot 256 dot realbasic-nug at lists dot realsoftware dot com> <6B7C58EE-E61C-4AF3-BC1F-6EA4B8E1E87D at ucsd dot edu> <fed2e2560706291459v406656c8r1f7976ed83d100d at mail dot gmail dot com>
On 6/29/07, Dennis Birch <dennisbirch at gmail dot com> wrote:
> The database could have been created with RB 2007R2, but that is as
> far back as it possibly could have gone.

Mystery solved! My application lets users set a boolean value for all
the records that match a "job ID" to true or false. In that one
particular case I use a raw SQL statement to handle it without looping
through records. The method that performs that update was getting its
boolean value for the SQL statement from a function that returns
"true" or "false" instead of 1 or 0. I apparently tested that feature
and populated my database with useless values for several records.
It's too bad that SQLite lets you do that, and doesn't raise an error
when you try to enter the wrong type of data for a column.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>