[sqlite] Triggers and CTE's

2014-11-11 Thread Ben Newberg
above separately without the Create Trigger DDL, the query runs successfully and populates my zWeeks table with values 1 through 10. Do triggers not support this behavior, or is my syntax incorrect? Thanks, BEN ___ sqlite-users mailing list sqlite-users

Re: [sqlite] Triggers and CTE's

2014-11-11 Thread Ben Newberg
Thanks Simon. The 10 is just an arbitrary value I chose for this example. The user actually determines the value at run-time, so this value could be any integer. I have a way to settle that, if only I could figure out how I can get this trigger working. BEN On Tue, Nov 11, 2014 at 5:41 PM

Re: [sqlite] Triggers and CTE's

2014-11-11 Thread Ben Newberg
Thanks everyone. I will have the programming language do the work on this one instead of going the trigger route. On Nov 11, 2014 7:39 PM, Richard Hipp d...@sqlite.org wrote: On Tue, Nov 11, 2014 at 8:22 PM, Igor Tandetnik i...@tandetnik.org wrote: On 11/11/2014 6:15 PM, Ben Newberg wrote

[sqlite] specified store provider cannot be found in the configuration, or is not valid exception

2014-10-16 Thread Ben Lam
Hi, Really appreciate any help. I get the exception 'The specified store provider cannot be found in the configuration, or is not valid.' on this line in the code: using (var handheldEntities = new HandheldDatabaseOnDesktopEntities()) My environment: VS2010 SP1, WIN 8.1 PRO Snippet from

[sqlite] sqlite data source not available

2014-10-10 Thread Ben Lam
Hi, Really appreciate any help, spent a day and a half trying to figure this out without success. I can't get 'System.Data.SQLite Database File' to show up as an option I the 'choose data source' window. My environment: VS2010 SP1, WIN 8.1 PRO 1. Installed

Re: [sqlite] SQLite relative dates and join query help

2014-08-13 Thread Ben
FROM items, collections WHERE collections.collection_date = date(items.creation_date, '+50 days') GROUP BY items.id ORDER BY prod_code ASC, last_collection_date ASC Thanks again, Ben On 13 Aug 2014, at 02:43, Keith Medcalf kmedc...@dessus.com wrote: I don't think you want max

[sqlite] SQLite relative dates and join query help

2014-08-12 Thread Ben
, Ben ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] SQLite encoding-specific functions

2014-04-06 Thread Ben
On 6 Apr 2014, at 21:28, Richard Hipp d...@sqlite.org wrote: On Sun, Apr 6, 2014 at 4:18 PM, Ben sqlite_l...@menial.co.uk wrote: Hi all, Is there any advantage to using the encoding specific functions from the C api? For example, given a database with its encoding set to UTF-16, should

[sqlite] Using a customized collate function to mimic integer array type.

2014-03-21 Thread Ben Peng
Dear sqlite experts, I have an application where data stored in columns can be lists of integers (e.g. 158;42;76). I cannot really split such record into multiple records (one for 158, one for 42 etc) and I am currently storing them as VARCHAR because they represent a complete piece of

Re: [sqlite] Using a customized collate function to mimic integer array type.

2014-03-21 Thread Ben Peng
the columns directly and save us from the trouble of translating user input, so it might be a better solution in this case. Thanks, Bo On Fri, Mar 21, 2014 at 10:05 AM, Tristan Van Berkom tris...@upstairslabs.com wrote: On Fri, 2014-03-21 at 09:35 -0500, Ben Peng wrote: Dear sqlite experts

Re: [sqlite] Using a customized collate function to mimic integer array type.

2014-03-21 Thread Ben Peng
danielk1...@gmail.com wrote: On 03/21/2014 10:33 PM, Ben Peng wrote: Hi, Tristan, Your solution definitely works (we have defined a few custom functions) but our application hides databases from users but allows users to use simple conditions to retrieve results. To use this function, we would

Re: [sqlite] Where does SQLite write out files?

2013-11-08 Thread Ben
and still has some bugs, but works. - Ben On 7 Nov 2013, at 17:42, L. Wood lwoo...@live.com wrote: What directories can SQLite possibly write files to? Modern Mac OS X programs run in sandbox mode. This is a requirement to publish apps on Apple's Mac App Store. Sandboxing means

[sqlite] Compile option documentation conflict

2013-07-23 Thread Ben
that the option SQLITE_ENABLE_FTS3 enables FTS3 support (without mentioning FTS4). It also lists the option SQLITE_ENABLE_FTS4 with a description stating that this enables FTS3 and 4. For myself at least, adding SQLITE_ENABLE_FTS3 seems to enable both just fine. Regards, Ben Barnett

Re: [sqlite] GUI for SQLite

2013-06-27 Thread Ben
That first link is *well* out of date and the second only compares three editors. I don't believe there is a comprehensive comparison anywhere right now. - Ben On 26 Jun 2013, at 17:46, Rose, John B jbr...@utk.edu wrote: fyi http://www.barefeetware.com/sqlite/compare/?ml/ http

Re: [sqlite] Finding .db file in XCode project

2012-11-21 Thread Ben
Simulator/6.0/Applications There's a load of UUID-named folders in there, one for each simulator app. Poke around in there and you'll likely find it. - Ben ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman

[sqlite] Resolving Database locking issues in a multi-user environment

2012-10-19 Thread Ben Morris
Hello all, I've recently joined an organization that is attempting to use SQLite in a multi-user environment (C#, using System.Data.SQLite, layered under the DevExpress XPO ORM). Due to the high-latency nature of the networks on which our application is deployed, we're seeing a very high number

Re: [sqlite] Resolving Database locking issues in a multi-user environment

2012-10-19 Thread Ben Morris
, and presented this to our management team, however this seems to have been to no avail, so this post was something of an appeal to authority. On Fri, Oct 19, 2012 at 4:21 PM, Nick Shaw nick.s...@citysync.co.uk wrote: Richard Hipp wrote: Ben Morris magospiet...@gmail.com wrote: If anyone could share

[sqlite] Lemon: Non-terminal destructors and cleanup

2012-10-18 Thread Ben
on the destructor defined by %token_destructor{}. Or for that matter whether I should be declaring a more specific symbol destructor. Can anyone shed some light on how this should be done? Thanks, Ben ___ sqlite-users mailing list sqlite-users@sqlite.org http

Re: [sqlite] Lemon: Non-terminal destructors and cleanup

2012-10-18 Thread Ben
On 18 Oct 2012, at 20:07, Richard Hipp d...@sqlite.org wrote: On Thu, Oct 18, 2012 at 3:03 PM, Ben sqlite_l...@menial.co.uk wrote: Hi list, I'm having a little trouble getting my head around memory management within a Lemon-generated parser. Specifically the part of the docs stating

[sqlite] Problem in sqlite3VXPrintf due to floating point optimization

2012-09-15 Thread van der Merwe, Ben
Hi, If we compile sqlite3.c (version 3.7.14) using Microsoft Visual C++ 2010 with maximum optimization, /Ox, then we experience this problem: The code in sqlite3VXPrintf is sensitive to numerical optimization. With optimizations turned on, a number like: 99.943 *sometimes* is

[sqlite] SQLite feature request: strict quoting pragma

2011-10-04 Thread Ben Denckla (Orders)
Upon reading Programmers are cautioned not to use the two exceptions described in the previous bullets at http://www.sqlite.org/lang_keywords.html, the goody two-shoes in me thought, I would like a pragma that disables those exceptions, i.e. a strict quoting pragma. Then I could use that pragma

[sqlite] Shapefile 2.0

2011-09-16 Thread Ben Harper
SQLite, in its 'default' code configuration, contains enough functionality to be a replacement for a shapefile. However, there is one very significant feature that is wasteful to ignore: spatial indexes. In order for the SQLite RTree to be used, it needs accompanying code that understands the

[sqlite] LIKE operator on virtual table assumes ASCII collation

2011-09-09 Thread Ben Harper
of the virtual table mechanism? Regards, Ben ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

[sqlite] Patch to pass collation through to Virtual Tables

2011-09-09 Thread Ben Harper
the virtual table the ability to recognized case-insensitive LIKE queries, which is also not currently possible. I basically just copied the single line from bestBtreeIndex into bestVirtualIndex. Is there any chance something like this could get merged into the main line? Regards, Ben

Re: [sqlite] Patch to pass collation through to Virtual Tables (The Patch Text)

2011-09-09 Thread Ben Harper
and SQLITE_INDEX_CONSTRAINT_ codes are identical. The ** following asserts verify this fact. */ -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Ben Harper Sent: 09 September 2011 03:18 PM To: sqlite-users@sqlite.org Subject: [sqlite

[sqlite] SQLite giving error with nested inner joins

2011-09-07 Thread Ben van der Merwe
Hi, We make use of a number of queries which we also run against other databases. Consider this simplified example: SELECT psim_objects.ObjectName, property.AttributeTextValue, data.Attribute, data.AttributeUOM FROM psim_objects INNER JOIN (psim_objectdata data INNER JOIN psim_objectdata

[sqlite] caveat on blanket UPDATE triggers

2011-07-14 Thread Ben Harper
class of functions, that breakpoint does not get hit, but the RTree is nevertheless updated. One symptom of the corruption is: SELECT * from idx_table_field_geometry, and you'll end up with a bunch of 0,0,0,0 MBRs. Ben ___ sqlite-users mailing list

Re: [sqlite] caveat on blanket UPDATE triggers

2011-07-14 Thread Ben Harper
Apologies! My mistake. The UPDATE trigger can be catch-all-fields (ie no fields specified), and it is still correct. To answer your question Dan, I am not creating a trigger on an RTree. I am creating a trigger on a regular table, which keeps the RTree up to date. Thanks, Ben

[sqlite] DROP TABLE yields SQLITE_LOCKED from user-defined function

2011-07-07 Thread Ben Harper
like so: SELECT my_function(); Thanks, Ben ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] DROP TABLE yields SQLITE_LOCKED from user-defined function

2011-07-07 Thread Ben Harper
OK. I'm assuming this is not a regular pattern that has an idiomatic workaround? Ben -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Pavel Ivanov Sent: 07 July 2011 05:18 PM To: General Discussion of SQLite Database Subject

[sqlite] False negatives from RTree

2011-07-05 Thread Ben Harper
discern anything strange about the data, or my methods. I'm curious to know whether anybody has seen this kind of thing before? Thanks, Ben ps. This message is cross-posted to the Spatialite mailing list. ___ sqlite-users mailing list sqlite-users@sqlite.org

Re: [sqlite] False negatives from RTree

2011-07-05 Thread Ben Harper
...@sqlite.org] On Behalf Of Richard Hipp Sent: 05 July 2011 03:20 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] False negatives from RTree On Tue, Jul 5, 2011 at 8:55 AM, Ben Harper b...@imqs.co.za wrote: Hi, Has anybody ever seen anomalous behaviour on an R*Tree. Specifically

Re: [sqlite] False negatives from RTree

2011-07-05 Thread Ben Harper
To: General Discussion of SQLite Database Subject: Re: [sqlite] False negatives from RTree On Tue, Jul 5, 2011 at 8:55 AM, Ben Harper b...@imqs.co.za wrote: Hi, Has anybody ever seen anomalous behaviour on an R*Tree. Specifically, false negatives? I'm using Spatialite 2.4.0 RC. What I end up

Re: [sqlite] SQLite IDE's

2011-03-22 Thread Ben
You don't mention which platform you're on, but for OS X there's a good comparison table of SQLite editors here: http://www.barefeetware.com/sqlite/compare/?ml - Ben On 22 Mar 2011, at 18:46, Sam Carleton wrote: I am looking for a good SQLite IDE, SQLite Maestro looks like a good candidate

[sqlite] ANN: Base 2.0, Mac SQLite GUI

2011-02-19 Thread Ben
announcement (with a link to release notes) here: http://menial.co.uk/2011/02/18/base-2-0/ I hope this is something of interest to list subscribers. Ben Barnett Menial ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin

Re: [sqlite] ANN: Base 2.0, Mac SQLite GUI

2011-02-19 Thread Ben
discussions here. If anyone has any comments or problems, you can contact me off-list on i...@menial.co.uk, or using the from address in this message. - Ben On 20 Feb 2011, at 06:19, BareFeetWare wrote: Hi Ben, In reply to your announcement of Base 2: Just a short message to announce

Re: [sqlite] Windows performance problems associated with malloc()

2010-12-18 Thread Ben Harper
This is low probability, but maybe the Fault Tolerant Heap is turned on for sqlite.exe? I believe you'll see the exe mentioned in here if that is the case: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\FTH\State FTH was introduced in Windows 7. Ben ___ sqlite

[sqlite] BUSY on COMMIT when EXCLUSIVE is held is an unexpected result

2010-12-17 Thread Ben Harper
bring this up anyway. Regards, Ben ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] BUSY on COMMIT when EXCLUSIVE is held is an unexpected result

2010-12-17 Thread Ben Harper
I'm using rollback - and no it's nothing like trying to commit inside a user-defined function. Very simple usage pattern. I'll isolate the code so that it's small enough to post here. I just noticed that I do sqlite3_busy_timeout(DB,0) - if that's relevant. Ben -Original Message- From

Re: [sqlite] WAL file size

2010-11-25 Thread Ben Harper
the responsiveness that you require. I have no contact with the SQLite authors, but I wouldn't place my bets on rolling logs being available any time soon. Ben -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Yoni Sent: 25 November 2010

Re: [sqlite] WAL file size

2010-11-24 Thread Ben Harper
system of mine, where blocking is an issue, I buffer up the write messages, and flush them on a background thread. Of course this may not be practical for you... Ben -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Yoni Sent

Re: [sqlite] virtual tables

2010-11-22 Thread Ben Harper
, but the manner in which I cater for long transactions makes it necessary for me to strap Sqlite onto, for instance, a modified Postgres table that has not yet been committed to the DB. Ben -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org

[sqlite] How can xBestIndex discern 'a' = col COLLATE NOCASE vs 'a' = col

2010-11-19 Thread Ben Harper
= 'val' COLLATE NOCASE; ... send identical data to xBestIndex. Am I right if I conclude that the xBestIndex interface would need to be extended in order to make it possible to distinguish between these three different queries? Thanks, Ben ___ sqlite

[sqlite] WAL hash collisions

2010-11-06 Thread Ben Harper
In wal.c, it reads 8 or 10 comparisons (on average) suffice to either locate a frame in the WAL or to establish that the frame does not exist in the WAL. I'm wondering -- how often does it occur that only a small subset of pages is written to again and again, in sequence, such that the WAL

Re: [sqlite] R*Tree module and double precision?

2010-11-04 Thread Ben Harper
Are you sure that double precision in the RTree is necessary for your purposes? Here is a table of floating point precision at various values: The 'flip' values are the 'org' values with the lowest bit flipped. org flip (delta) 0.01 0.01 (

[sqlite] Using sqlite's WAL with a hash table store

2010-11-03 Thread Ben Harper
, or is it made to run pretty much ignorant of the file that it is WAL'ing against? Thanks, Ben ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Using sqlite's WAL with a hash table store

2010-11-03 Thread Ben Harper
To: General Discussion of SQLite Database Subject: Re: [sqlite] Using sqlite's WAL with a hash table store On 3 Nov 2010, at 8:30am, Ben Harper wrote: I know the answer to this question is really Just try it and see, but I want to gauge whether the idea is sane or not before I spend/waste time

Re: [sqlite] Using sqlite's WAL with a hash table store

2010-11-03 Thread Ben Harper
] Using sqlite's WAL with a hash table store FTS3 extension is very fast and scalable hash engine. I did test FTS3 up to 400+ millions of record and it's nice. 2010/11/3 Ben Harper b...@imqs.co.za Hi, I know the answer to this question is really Just try it and see, but I want to gauge whether

Re: [sqlite] Using sqlite's WAL with a hash table store

2010-11-03 Thread Ben Harper
On Wed, Nov 03, 2010 at 12:31:35PM +0200, Ben Harper scratched on the wall: I guess I could actually dump the hash table into a blob. I'm also doing something like a bloom filter, and I guess that can just as well go into a blob too.. Basically the system is a big cache, and it must quickly

[sqlite] How does xBestIndex know that a LIKE query is case insensitive?

2010-09-23 Thread Ben Harper
. I want the default LIKE behaviour, which is NOCASE, but I can't figure out where to glean this information from inside xBestIndex. Am I missing something? Thanks, Ben ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi

[sqlite] Breakpoints uncorrelated on MSVC amalgamation build

2010-09-23 Thread Ben Harper
I just discovered the MSVC compiler generates bad debug info for source files larger than 64k lines, which is the case with the Sqlite amalgamation. Does anyone know of a workaround? Thanks, Ben ___ sqlite-users mailing list sqlite-users@sqlite.org

Re: [sqlite] Breakpoints uncorrelated on MSVC amalgamation build

2010-09-23 Thread Ben Harper
OK. -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Teg Sent: 23 September 2010 03:20 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] Breakpoints uncorrelated on MSVC amalgamation build Hello Ben

Re: [sqlite] How does xBestIndex know that a LIKE query is case insensitive?

2010-09-23 Thread Ben Harper
'? If so, I don't understand how this comes to be. The docs clearly state that the default is BINARY, and I've tried explicitly creating my vtable with (field COLLATE BINARY)... so that seems unlikely to me. But I'll have to dig further. Ben -Original Message- From: sqlite-users-boun

Re: [sqlite] Breakpoints uncorrelated on MSVC amalgamation build

2010-09-23 Thread Ben Harper
September 2010 03:24 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] Breakpoints uncorrelated on MSVC amalgamation build Which MSVC compiler has this bug? There's a link to information on that ? On Thu, Sep 23, 2010 at 10:17, Ben Harper b...@imqs.co.za wrote: I just discovered

Re: [sqlite] Which data type is better for date?

2010-09-04 Thread Ben
Mike, If you are using iOS, then presumably you are using the NSDate class. If you are, then the easiest thing to do is store the result of - (NSTimeInterval)timeIntervalSinceReferenceDate . This stored value can be turned back into an NSDate using [NSDate

Re: [sqlite] Feature request: copying vacuum

2010-09-01 Thread Ben Danper
On Wed, Sep 1, 2010 at 12:46 PM, Jay A. Kreibich j...@... wrote: There is no reason to assume the filesystem will over-write the existing allocations, rather than just create new ones, especially if the pages are shuffled in groups... Actually there's no reason to do the opposite, as it would

[sqlite] Any way to make xUpdate only alter the columns that are changed?

2010-07-28 Thread Ben Harper
if the xUpdate function could inform one that only the field 'age' is being altered. As it is now, every field is fed to xUpdate, causing a circumventable read/verify/write burden on the VT implementation. This must be a frequent question? Thanks, Ben ___ sqlite

Re: [sqlite] Any way to make xUpdate only alter the columns that are changed?

2010-07-28 Thread Ben Harper
: Re: [sqlite] Any way to make xUpdate only alter the columns that are changed? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/28/2010 07:37 AM, Ben Harper wrote: then it would be great if the xUpdate function could inform one that only the field 'age' is being altered. As it is now

[sqlite] 3.7.0 foreign_keys and recursive_triggers default status

2010-07-17 Thread Ben Danper
As of 3.6.23.1 the pragmas foreign_keys and recursive_triggers default to OFF, but the documentation mentions they might get enabled in the future. It would seem natural for these features to be enabled by default; as I understand the only reason they are disabled is to avoid affecting

[sqlite] RFE: Do not store NULL/default values for last columns if possible‏

2010-05-17 Thread Ben Danper
When the database format is 2 or higher (explicitly via PRAGMA legacy_file_format = false; or implicitly via ALTER TABLE ... ADD COLUMN ...), sqlite doesn't currently take advantage of the fact that NULL columns at the end don't have to be stored. For example: PRAGMA legacy_file_format =

[sqlite] Bus error crash in SQLite

2010-05-15 Thread Ben
in sqlite3Insert() at the line: sqlite3ExprCodeAndCache(pParse, pList-a[j].pExpr, regCols+i+1); Is this something I'm doing wrong? If more information is needed, just let me know what to get. - Ben ___ sqlite-users mailing list sqlite-users@sqlite.org http

Re: [sqlite] Bus error crash in SQLite

2010-05-15 Thread Ben
Thanks very much for pointing me to the ticket. I'm still not very familiar at locating stuff in the fossil repo. The error message you show is what I was expecting as my app will notice that and handle the error. Thanks again, Ben On 15 May 2010, at 14:53, Black, Michael (IS) wrote: I

Re: [sqlite] Computed columns in VIEWs return NULL but should be able to be typed! Any ideas?

2010-05-11 Thread Ben Harper
for me so far. On my simple views I always see homogenous column types. Ben -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Stefan Keller Sent: 08 May 2010 04:29 PM To: General Discussion of SQLite Database Subject: Re: [sqlite

Re: [sqlite] Proposed new sqlite3_open_v3() interface

2010-05-04 Thread Ben
On 3 May 2010, at 15:47, D. Richard Hipp wrote: Community feedback is requested for the following proposed new SQLite C API: int sqlite3_open_v3(const char*, sqlite3**, int, const char*); ... (3) The default database file format would be format 4 (meaning that new databases

[sqlite] rowid availability from views is inconsistent

2010-03-12 Thread Ben Harper
* FROM one; CREATE VIEW v2 AS SELECT rowid,* FROM one; -- My current best guess SELECT rowid,i32 FROM v1; |100 |200 --- vs --- SELECT rowid,i32 FROM v2; 1|100 2|200 Thanks, Ben ___ sqlite-users mailing list sqlite

Re: [sqlite] rowid availability from views is inconsistent

2010-03-12 Thread Ben Harper
I only have this problem when I'm using a view on virtual tables, and since I have complete control over them, I guess I could just explicitly declare a rowid INTEGER PRIMARY KEY column for my virtual tables, and that should solve the problem. Thanks, Ben -Original Message- From

[sqlite] Doc bug in 'Datatypes' page

2010-02-10 Thread Ben North
Minor typo: section 2.0 Type Affinity of http://www.sqlite.org/datatype3.html says, in the third paragraph after the bullet list, Hence, the string '3.0e+5' is stored in a column with NUMERIC affinity as the integer 3, not as the floating point value 30.0. I think this

Re: [sqlite] Updating blob columns from files by command-line

2010-02-07 Thread Ben Gorte - LR
How about (for a start): for i in *.txt; do sqlite3 dir.db insert into texts values('$i', '`cat $i`');; done Probably there shouldn't be any single quotes in the contents. Ben G Given table texts(filename text, contents blob) and a directory of plain text files, is it possible (using

[sqlite] Newbie problem using special column name

2010-01-25 Thread Patrick Ben Koetter
Can I add a column name containing a dash - and if yes, how would I do that? I am asking because I fail to add a column name that contains a dash - and I don't know if I cause the problem (easy solution) or if its something else causing this to fail. Here's what I try: sqlite create table

Re: [sqlite] Newbie problem using special column name

2010-01-25 Thread Patrick Ben Koetter
the column name every time you (or somone other) uses ist. Thanks. Unfortunately I don't have a choice. An application I don't have control over expects such strange table names. p...@rick Martin Patrick Ben Koetter wrote: Can I add a column name containing a dash - and if yes, how would I do

Re: [sqlite] Pragma not allowed in SQL error

2009-12-03 Thread Ben Corneau
Tim Romano wrote: Thanks, Simon. I've tried PRAGMA encoding too but Adobe complains whenever it sees PRAGMA. Tim Romano According to the Adobe documentation, PRAGMA statements are not supported by their actionscript/flash database engine.

[sqlite] Detecting and creating corrupt files

2009-11-29 Thread Ben
it, but wondered if this would produce different symptoms than a file 'properly' corrupted through accidental damage. Thanks, Ben Barnett ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite

Re: [sqlite] Detecting and creating corrupt files

2009-11-29 Thread Ben
On Sun, 29 Nov 2009 10:31:29 +, Ben sqlite_l...@menial.co.uk wrote: Hi all, I write an SQLite browser for macs, and someone recently brought to my attention that it doesn't handle corrupt database files very well. I've read the pages on pragmas for integrity checking and how locking

[sqlite] Detecting virtual/fts tables

2009-07-20 Thread Ben
, Ben Barnett ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] INSERT INTO and Hexadecimal Literals

2009-07-02 Thread Ben Atkinson
, Igor. That tells me what I need. Regards, Ben Ben Atkinson wrote: Sorry for the newbie SQL question. I'm trying to use the INSERT INTO statement with a hexadecimal literal. I want to accomplish something like this: INSERT INTO TruckDefaultsTable VALUES ( 'AirPressureTime', 0

[sqlite] INSERT INTO and Hexadecimal Literals

2009-07-01 Thread Ben Atkinson
: 0xB4 I could express the value in decimal as 11796480, but that's pretty awkward since the actual value I'm putting into the table is a Linux timeval structure. It just makes more sense as hex. Does SQL have a hex literal sequence that serves the same role as 0x in C? Thanks for any help. Ben

Re: [sqlite] Cross-Compile and Installation of Sqlite

2009-06-26 Thread Ben Atkinson
make install put the installation bin, include, and lib directories in a directory on my Ubuntu host where I could zip them up, and transfer them to /usr/local on my embedded target. Regards, Ben On Thu, Jun 25, 2009 at 4:23 PM, Ben Atkinsonwrote: I have an embedded Linux ARM target and wish

[sqlite] Cross-Compile and Installation of Sqlite

2009-06-25 Thread Ben Atkinson
through this and perhaps has a howto? Is there already a recipe in the Makefile for this? Regards, Ben ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

[sqlite] Cross-Compile and Installation of Sqlite

2009-06-25 Thread Ben Atkinson
On Jun 25, 2009, at 4:23 PM, Ben Atkinson wrote: I have an embedded Linux ARM target and wish to run sqlite on it. I successfully cross-compiled sqlite-3.6.15 on my Ubuntu x86 host, and now I'm ready to install sqlite3, its libraries, and headers on my target system. I originally

[sqlite] import / insert 120k records

2009-05-07 Thread Ben Marchbanks
Whats the best way to import a large number of records ? 120K+ currently stored as an XML file. -- *Ben Marchbanks* ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] import / insert 120k records

2009-05-07 Thread Ben Marchbanks
That makes good sense - if my task were repetitive I would take that route - I opted to write a quick and dirty PHP script just to handle this one-off case and it worked like a charm. I can share the script as a jumping off point for anyone who is interested. *Ben Marchbanks* John Stanton

[sqlite] Import xml into SQLite

2009-05-06 Thread Ben Marchbanks
I am looking for a nice GUI for admin of SQLite database - on Mac OS. I tried FireFox SQLmanager with no luck - any other suggestions ? I need an easy way to import large XML into a new table. -- *Ben Marchbanks* ___ sqlite-users mailing list sqlite

[sqlite] Retrieve database modification stamp

2009-05-04 Thread Ben Harper
) which is incremented during every change operation. Thanks, Ben ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

[sqlite] Feasibility of SQLite as multiuser (readonly)

2009-01-29 Thread Ben Marchbanks
I realize the SQLite is designed for single client only but is it feasible at all to use a SQLite DB for multiple users in a workgroup as a readonly data source ? -- *Ben Marchbanks* ___ sqlite-users mailing list sqlite-users@sqlite.org http

[sqlite] Multiuser Readonly Database

2009-01-28 Thread Ben Marchbanks
but the project now has a new requirement that enterprise users be able to run the app and access the same documents (and SQLite db) over the network simultaneously. Files ad SQLite DB is for readonly. Is this viable and if so what are some of the caveats ? -- *Ben Marchbanks

[sqlite] Parenthetical LIKE query ??

2009-01-04 Thread Ben Marchbanks
SELECT * FROM `pagesText` WHERE pageText LIKE ( %muffler% , %clamp% ) Is there a nice way to write a query using parenthetical LIKE ? Queries like this can get quite long otherwise Any suggestions ? *Ben Marchbanks* www.magazooms.com http://www.magazooms.com/ Signature Email: b

[sqlite] REGEXP

2008-12-16 Thread Ben Marchbanks
I am confused. Is REGEXP enabled in SQLite or does there have to be a regexp custom function created ? -- *Ben Marchbanks* www.magazooms.com http://www.magazooms.com/ Signature Email: b...@magazooms.com mailto:b...@magazooms.com Phone: (864) 284.9918

[sqlite] Adobe AIR SQLite - error 3132

2008-12-08 Thread Ben Marchbanks
I am getting an exception # 3132 as I try to update a record in my AIR runtime application. This error only occurs on my WinXP test machine and not on my iMac running OS 10.5.5 ( my development machine). Any resource for getting full list of error codes ? -- *Ben Marchbanks

Re: [sqlite] Adobe AIR SQLite - error 3132

2008-12-08 Thread Ben Marchbanks
I believe I found the problem. I attempted to update a date field 2008.12.07 which was being interpretted as a number - apparently AIR version of SQLite enforces data types more stringently. *Ben Marchbanks* www.magazooms.com http://www.magazooms.com/ Signature Email: [EMAIL PROTECTED

Re: [sqlite] Adobe AIR Version Issue(?)

2008-12-06 Thread Ben Marchbanks
the db file and start fresh. If you are using AIR besure to clean project to move your sqlite database to the bin-debug folder. I had the same issue just today - I realized my updated SQLite table was not being used by the debugger. *Ben Marchbanks* www.magazooms.com http://www.magazooms.com

[sqlite] Why must one write a mini SQL parser to read the column names?

2008-12-01 Thread Ben Harper
To the best of my findings, it seems to me that one needs to write a mini SQL parser in order to read the 'sql' field from sqlite_master, in order to discover the fields in an Sqlite table. Is this really a necessary design? Would it not be better if sqlite3_table_column_metadata had a mode that

Re: [sqlite] Why must one write a mini SQL parser to read the columnnames?

2008-12-01 Thread Ben Harper
Thanks, that's perfect! On Mon, Dec 1, 2008 at 3:06 PM, Igor Tandetnik [EMAIL PROTECTED] wrote: Ben Harper [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] To the best of my findings, it seems to me that one needs to write a mini SQL parser in order to read the 'sql' field from

[sqlite] Adobe AIR sqlite - access to sqlite_master

2008-11-26 Thread Ben Marchbanks
(); var mytableSchema = schemaResult.tables trace(mytableSchema) // = undefined Any ideas on a workaround ? -- *Ben Marchbanks* www.magazooms.com http://www.magazooms.com/ Signature Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Phone: (864) 284.9918

Re: [sqlite] Adobe AIR sqlite - access to sqlite_master

2008-11-26 Thread Ben Marchbanks
ignore this post - found the error of my ways ! *Ben Marchbanks* www.magazooms.com http://www.magazooms.com/ Signature Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Phone: (864) 284.9918 Ben Marchbanks wrote: I am having trouble getting a table description from a SQLite 3.4.2 database

Re: [sqlite] Adobe AIR Version Issue(?)

2008-11-22 Thread Ben Marchbanks
is that the file permission were set to -rwx-rwx-r-x instead of drwx-rwx--r-x as I would expect using chmod 0775. I think that PHP-PDO is a clumsy implementation. *Ben Marchbanks* www.magazooms.com http://www.magazooms.com/ Signature Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Phone: (864) 284.9918

Re: [sqlite] Adobe AIR Version Issue(?)

2008-11-22 Thread Ben Marchbanks
on mac OSX. SQLite Admin helps verify schema and test queries etc... *Ben Marchbanks* www.magazooms.com http://www.magazooms.com/ Signature Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Phone: (864) 284.9918 Ben Marchbanks wrote: Yes I did resolve it using a large hammer - I just delete

[sqlite] PHP created sqlite permissions

2008-11-21 Thread Ben Marchbanks
apache 9411584 2008-11-21 09:23 mzdb.sqlite Could it be that the reason for the table lock is due to file permissions? If not what could cause the table to remain locked after being populated ? -- *Ben Marchbanks* www.magazooms.com http://www.magazooms.com/ Signature Email: [EMAIL PROTECTED

[sqlite] Database Locked

2008-11-16 Thread Ben Marchbanks
? *Ben Marchbanks* www.magazooms.com http://www.magazooms.com/ Signature Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Phone: (864) 284.9918 ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

[sqlite] Escaped values throws error

2008-11-16 Thread Ben Marchbanks
1.10.2.6.2.2 2007/03/23 14:30:00 wez Exp $ SQLite 3.4.2 -- *Ben Marchbanks* www.magazooms.com http://www.magazooms.com/ Signature Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Phone: (864) 284.9918 ___ sqlite-users mailing list sqlite-users@sqlite.org

Re: [sqlite] Escaped values throws error

2008-11-16 Thread Ben Marchbanks
Thanks - I did find a solution since I was not successful using sqlite_escape_string. I think that the SQLite implementation in PHP via PDO is the culprit. I wound up using double escape - str_replace(\,\\,$value); *Ben Marchbanks* www.magazooms.com http://www.magazooms.com/ Signature Email

  1   2   3   >