Re: [sqlite] equivalent for JOIN LATERAL

2015-02-08 Thread Darren Duncan
I recall that http://blog.heapanalytics.com/postgresqls-powerful-new-join-type-lateral/ shows how Pg 9.3's LATERAL join is useful in practice, as it lets you do in declarational SQL what you may have needed procedural code for before, in which case it is an improvement. -- Darren Duncan

Re: [sqlite] Autoincrement with rollback

2014-11-11 Thread Darren Duncan
own transaction and remember the value, then use that remembered value in your main transaction that you explicitly do afterwards. Do you understand what's going on now? -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http

Re: [sqlite] How to check if a record exists

2014-11-04 Thread Darren Duncan
itself, as that practice generally leads to huge security problems / SQL injection (although if your language is strongly typed an int wouldn't do it, but a string would). -- Darren Duncan On 2014-11-04 1:47 PM, Drago, William @ CSG - NARDAEAST wrote: All, I've been pulling my hair out trying

Re: [sqlite] The IN (... ) clause

2014-09-14 Thread Darren Duncan
-05') where the content of the IN would have the first item and the last item of the list, but that's it? Thanks. You're talking about a range/interval. In SQL it is spelled like this: BETWEEN '2014-01-01' AND '2014-01-05' -- Darren Duncan

Re: [sqlite] Transactions for read operations

2014-09-06 Thread Darren Duncan
changed by accident. -- Darren Duncan On 2014-09-06, 7:22 PM, Richard Warburton wrote: Hi, Brief: Should transactions be used for ensuring consistency between multiple queries? And if so, after I've finished is there a reason why I should not call commit? Background: I'm using SQLite for a web

Re: [sqlite] Sorting by month with two dates input

2014-09-01 Thread Darren Duncan
A common logical error that may be affecting you is, do your dates include a time portion or are they just year-month-day? If they include a time portion, then records from Dec 31 likely won't be counted as your 'between' arguments may be equivalent to '2013-12-31 00:00:00'. -- Darren Duncan

Re: [sqlite] Sorting by month with two dates input

2014-09-01 Thread Darren Duncan
other value, which is how it is supposed to be. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Sorting by month with two dates input

2014-08-31 Thread Darren Duncan
), t FROM ( SELECT cust, ProjFund, Xtra8, coalesce(billdate,bdate) as t FROM LSOpenProjects WHERE billdate BETWEEN '2013-01-01' AND '2013-12-31' OR bdate BETWEEN '2013-01-01' AND '2013-12-31' ) x GROUP BY substr(t,1,7), cust; -- Darren Duncan ___ sqlite

Re: [sqlite] Sorting by month with two dates input

2014-08-31 Thread Darren Duncan
On 2014-08-31, 9:35 PM, Darren Duncan wrote: On 2014-08-31, 9:10 PM, jose isaias cabrera wrote: SELECT cust, sum(ProjFund), sum(Xtra8), coalesce(billdate,bdate) as t FROM LSOpenProjects WHERE billdate BETWEEN '2013-01-01' AND '2013-12-31' OR bdate BETWEEN '2013-01-01' AND '2013-12-31' GROUP

Re: [sqlite] FW: how best to determine # of rows in a table

2014-08-27 Thread Darren Duncan
. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] FW: how best to determine # of rows in a table

2014-08-27 Thread Darren Duncan
Sorry, the count thing was actually Mark Halegua's question. -- Darren Duncan On 2014-08-27, 8:58 PM, Darren Duncan wrote: On 2014-08-27, 8:41 PM, Keith Medcalf wrote: this may seem like a small issue, but I'm not sure if the solutions I've found on the web will do what I want in a low memory

Re: [sqlite] Variable number of parameters in a prepared statement's IN clause

2014-07-20 Thread Darren Duncan
in a temporary table and then use that for the join in a subsequent select. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

[sqlite] sqlite-users list failed to block large attachment

2014-05-13 Thread Darren Duncan
Is something wrong with the configuration of this sqlite-users list? A message of subject Porting SQLite to plain C RTOS was allowed and distributed through it this morning with attachments. Not only attachments, but about 5MB of attachments. -- Darren Duncan

Re: [sqlite] if possible point another table

2014-04-03 Thread Darren Duncan
. There's no reason that table names can't be values in principle. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] basic Window function

2014-03-13 Thread Darren Duncan
in which SQLite is more powerful than MySQL (but not PostgreSQL), the WITH support being another, and subjecting data definition to transactions is another. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi

Re: [sqlite] SQLite destroys civilization.

2014-03-02 Thread Darren Duncan
have seen several others that are on the realistic side. But a counter-example is a show I saw where they had programming code but it was actually HTML source, which really shows those ones didn't do their homework. -- Darren Duncan ___ sqlite

Re: [sqlite] Why SQLITE_FLOAT instead of SQLITE_REAL?

2014-03-01 Thread Darren Duncan
for the name of a concrete type, like with integer and ratio. (Well strictly speaking all of these could be abstract types, but the latter set are more specific in meaning, and in particular ratio and float imply a representation while the others don't. -- Darren Duncan

Re: [sqlite] How should I use parenthesis?

2014-01-28 Thread Darren Duncan
condition saying which fields you want to be used for matching in the join, and also replace the select * with a specific list of fields you want to match up for the union. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http

Re: [sqlite] Common Table Expression

2014-01-17 Thread Darren Duncan
require creation of separate schema objects, while someone with read-only access to a db can use WITH, especially beneficial for ad-hoc reports. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin

Re: [sqlite] Recursive query?

2014-01-12 Thread Darren Duncan
WITH RECURSIVE without WITH. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Recursive query?

2014-01-10 Thread Darren Duncan
that they want to go with WITH RECURSIVE. So the CONNECT BY branch has been closed and we are starting to work on a WITH RECURSIVE implementation. That's great news! This will be a serious step up in feature set for SQLite, both in ease of use and power, I look forward to it. -- Darren Duncan

Re: [sqlite] A read right after a write does not read changes

2013-12-11 Thread Darren Duncan
be taking up with the makers or a users group of the wrapper for help. You should be asking in some support forum specific to Entity Framework about this problem. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http

Re: [sqlite] Nested transactions

2013-11-23 Thread Darren Duncan
the whole database they may be useful with. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Nested transactions

2013-11-23 Thread Darren Duncan
today don't have the precondition of a transaction being active to use them, so on their own savepoint is like a generalization of a transaction. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman

Re: [sqlite] Trigger SQL and database schema

2013-10-16 Thread Darren Duncan
On 2013.10.15 10:34 PM, Petite Abeille wrote: On Oct 16, 2013, at 7:20 AM, Darren Duncan dar...@darrenduncan.net wrote: On 2013.10.14 11:58 PM, Sqlite Dog wrote: seems like SQLite is not checking trigger SQL for invalid column names until execution? What you describe sounds like

Re: [sqlite] Trigger SQL and database schema

2013-10-15 Thread Darren Duncan
to reverse it, at least for default semantics. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Using pragma user_version when doing updates

2013-09-17 Thread Darren Duncan
metadata as tablevars. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Is SQLite a DBMS?

2013-09-02 Thread Darren Duncan
I don't think that being ACID and SQL compliant is the definition of a DBMS, far from it. While it is true that typically anything which is ACID and SQL compliant is a DBMS, lots of things can be a DBMS without being either ACID or SQL compliant. See dBASE for example. -- Darren Duncan

Re: [sqlite] Is SQLite a DBMS?

2013-09-02 Thread Darren Duncan
of that is best to have in practice. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] can column name come from a table?

2013-07-29 Thread Darren Duncan
like this: execute format( 'SELECT %I FROM table that has that columnName', (SELECT columnName FROM columnNameTable WHERE condition how to select limit 1) ); But I don't know if SQLite can do that in SQL; you might have to use the host language. -- Darren Duncan

Re: [sqlite] can column name come from a table?

2013-07-29 Thread Darren Duncan
support views, you could define views having the names that the users want. In fact, that's what views are for, letting different users have different interfaces to the same database. -- Darren Duncan ___ sqlite-users mailing list sqlite-users

Re: [sqlite] Bug in Apress SQLite book. Was: Different result set of query in examples of SQLite book

2013-06-13 Thread Darren Duncan
subqueries before you talk about joins or grouping. On the other hand, I suppose from an explanation point of view, a subquery in the SELECT list could actually be a simpler thing to explain to a SQL newbie, so maybe that's why it is first. -- Darren Duncan

Re: [sqlite] SQLite and integer division 1/2=0

2013-05-13 Thread Darren Duncan
produce a fractional result while the latter guarantees a whole number result.) The pragma is a bad idea. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] SQL join with or condition gives unexpected results

2013-05-09 Thread Darren Duncan
. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Version 3.7.17 Preview

2013-04-26 Thread Darren Duncan
, and a very appropriate way to bring in many kinds of extra functionality, such as regular expression support. And I'm glad an extension for that is provided now, which gives much more power to type constraint definitions. -- Darren Duncan

Re: [sqlite] SQLite error near 16: syntax error

2013-04-12 Thread Darren Duncan
(' + dataGridView1.Rows[i].Cells[Column1].Value + ', ' + dataGridView1.Rows[i].Cells[Column2].Value + ', ' + dataGridView1.Rows[i].Cells[Column3].Value + ', ' + dataGridView1.Rows[i].Cells[Column4].Value + ', ' + dataGridView1.Rows[i].Cells[Column5].Value + ');; -- Darren Duncan

Re: [sqlite] Permalink to latest amalgamation

2012-10-24 Thread Darren Duncan
for example and end user of the DBD::SQLite Perl module that wants to pull in the latest SQLite version to build it against, without having to specify a version. We shouldn't expect such a user to have a fossil client, they should just be able to pull the amalgamation tarball over the web. -- Darren

Re: [sqlite] Mac development question

2012-10-23 Thread Darren Duncan
databases per user, even if they may typically just use one. If users open your program directly and not by double-clicking on a database file, you could automatically bring up a prompt to make a new one, as if they used the new database menu. -- Darren Duncan

Re: [sqlite] Mac development question

2012-10-23 Thread Darren Duncan
Igor Korot wrote: Darren, On Tue, Oct 23, 2012 at 8:53 PM, Darren Duncan dar...@darrenduncan.net wrote: You should not have an application installer, at all. Instead, you can ask the question on where to store the database when the user opens your program. Or better yet, your application

Re: [sqlite] Transaction inside transaction

2012-10-22 Thread Darren Duncan
wanted an autonomous transaction, which is different, depending on what you want. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] new Windows versions?

2012-10-16 Thread Darren Duncan
, you'll have Windows 8 on your next trade-up, as it comes out later this month. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Why can't SQLite drop columns?

2012-10-08 Thread Darren Duncan
automatically (though it could also be configured to happen automatically). -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Why can't SQLite drop columns?

2012-10-08 Thread Darren Duncan
Jay Kreibich wrote: On Oct 8, 2012, at 3:36 PM, Darren Duncan dar...@darrenduncan.net wrote: Of course, if that is done, then in order to have predictable performance we'd also want to add some other statement one can invoke when they want to reclaim disk space later, which actually goes

Re: [sqlite] Can this be done in one query?

2012-09-09 Thread Darren Duncan
choice less verbose; in practice, one would more likely do it how you did, however. -- Darren Duncan Petite Abeille wrote: On Sep 9, 2012, at 6:51 AM, Darren Duncan dar...@darrenduncan.net wrote: You will need to use a subquery to do what you want, because you want to do a join

Re: [sqlite] Can this be done in one query?

2012-09-08 Thread Darren Duncan
, ChangeDate) in (select RowID, max(ChangeDate) as ChangeDate from audtbl group by RowID); -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

[sqlite] how to get SQLite 4 source?

2012-06-29 Thread Darren Duncan
to actually download and play with it? -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Duplicated Values - Occurrence Count

2012-05-25 Thread Darren Duncan
education, I'd like to know if there is an elegant way of achieving this in a single query. Thanks Nige You say something like this: select myfield, count(*) as mycnt from mytbl group by myfield ... where myfield is the one containing the duplicates. -- Darren Duncan

Re: [sqlite] National characters in database names on linux

2012-04-21 Thread Darren Duncan
and Calibre -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Using SQL or C for data analysis?

2012-03-27 Thread Darren Duncan
is to use Postgres 8.4+ (9.1 latest), which lets you do window functions directly in SQL. I know thats a not-SQLite solution, but it may be the least work to accomplish what you want, as its still terse/declarational SQL, and its also open source. -- Darren Duncan

Re: [sqlite] SQLite and Perl

2012-01-26 Thread Darren Duncan
, to also install DBI if you don't have it. That's one of the reasons you use those CPAN clients, to effortlessly pull in dependencies too, essentially like package managers. Also, cpan and cpanplus are bundled with Perl 5.10.1, but cpanm you have to install separately. -- Darren Duncan

Re: [sqlite] Named parameters and spaces.

2012-01-10 Thread Darren Duncan
Steven Michalske wrote: On Tue, Jan 10, 2012 at 3:19 PM, Darren Duncan dar...@darrenduncan.net wrote: Steven Michalske wrote: I would like to use the :nnn named parameters but have spaces in the named parameters. It seems that :nnn nnn, :nn nn, or :nn\ nn are all not recognized

Re: [sqlite] Inserting Multiple Rows in a single statement

2011-11-29 Thread Darren Duncan
Sreekumar TP wrote: Is it possible to insert multiple rows using a single statement ? Yes. INSERT INTO foo (x, y) VALUES (1,2), (3,4), (5,6),...; INSERT INTO foo (x,y) SELECT x, y FROM bar; That's at least 2 ways. -- Darren Duncan ___ sqlite

Re: [sqlite] Referencing subquery several times

2011-11-12 Thread Darren Duncan
): WITH (SELECT * FROM a) AS sfa, (SELECT * FROM b) AS sfb : SELECT * FROM m WHERE c IN sfa OR c IN sfb AND (NOT c IN sfa OR c IN sfb)); -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi

Re: [sqlite] JOIN vs IN

2011-11-11 Thread Darren Duncan
a trivial case of a semijoin where the table you are filtering on has exactly 1 row whose field value is 3, and ostensibly such WHERE clauses should also be optimizable. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http

Re: [sqlite] FW: How about a proper forum rather than an e-mail list

2011-10-19 Thread Darren Duncan
those, same as a mailing list would, and people can reply by email and then their replies end up on the forum as if someone had used the web to do it. It is important to have email copies of everything, which I can archive locally. -- Darren Duncan

Re: [sqlite] MC/DC coverage explained wrong in the home page?

2011-09-23 Thread Darren Duncan
boolean operators would be for all other uses, where the validity of one argument doesn't depend on the values of any of the other arguments, and so the compiler can be free to reorder it. -- Darren Duncan ___ sqlite-users mailing list sqlite-users

Re: [sqlite] No error on selecting non-grouped column

2011-09-14 Thread Darren Duncan
to be more restrictive, it would be that one can't reference a field directly in the select list that isn't in the group by unless we are grouping by a key of the table that the fields in the select list are from, so we have this uniqueness guarantee. -- Darren Duncan

Re: [sqlite] forcing X'' literals in sqlite3's .dump?

2011-08-17 Thread Darren Duncan
from using the SQLite source by itself under the public domain, no matter how anyone gets their copy of SQLite, whether linked with readline or not. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin

Re: [sqlite] Is it okay to use SQLite + PHP for Library Software?

2011-08-15 Thread Darren Duncan
developed by and for libraries, and that has been used in production for a few years now in many libraries. You should adapt this or modify it to meet your needs rather than start a new one, unless you can justify otherwise. -- Darren Duncan ___ sqlite-users

Re: [sqlite] Ensure that query acts on PRE-SORTED tables

2011-07-01 Thread Darren Duncan
an order number, such as using the RANK() SQL window function would give you. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Do I need to migrate to MySQL?

2011-06-05 Thread Darren Duncan
Darren Duncan wrote: MySQL should be avoided like the plague. I hereby retract my above-quoted statement as I realize that it is too severe a statement to be making. Instead I will say the following in its place: MySQL should not be considered as the default choice of a non-lite SQL DBMS

Re: [sqlite] Do I need to migrate to MySQL?

2011-06-05 Thread Darren Duncan
Dagdamor wrote: Darren Duncan dar...@darrenduncan.net писал(а) в своём письме Mon, 06 Jun 2011 05:08:45 +0600: MySQL should not be considered as the default choice of a non-lite SQL DBMS, for projects not currently using it, when you have a choice between multiple SQL DBMSs; instead

Re: [sqlite] Do I need to migrate to MySQL?

2011-06-04 Thread Darren Duncan
Mr. Puneet Kishor wrote: On Jun 3, 2011, at 6:16 PM, Darren Duncan wrote: a. MySQL silently ignores all CHECK constraints in all engines, so for example you can't even tell it you want a column to only hold values between 1 and 10. Its in the MySQL docs: The CHECK clause is parsed

Re: [sqlite] Do I need to migrate to MySQL?

2011-06-03 Thread Darren Duncan
MySQL should be avoided like the plague. Use Postgres instead if you have to switch to a larger SQL DBMS. But hopefully the help you've gotten so far will extend your mileage with SQLite and you won't have to switch to anything yet. -- Darren Duncan Ian Hardingham wrote: Guys, the server

Re: [sqlite] Do I need to migrate to MySQL?

2011-06-03 Thread Darren Duncan
Mr. Puneet Kishor wrote: On Jun 3, 2011, at 1:19 PM, Darren Duncan wrote: MySQL should be avoided like the plague. why? This is a long standing (un)conventional wisdom to which I too have hewed. Now, it so happens, I will be starting work on a project that uses MySQL exclusively, and has

Re: [sqlite] Making data and tables persistent

2011-06-02 Thread Darren Duncan
? -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Usefulness of FKs to multiple tables

2011-05-19 Thread Darren Duncan
you have both corresponding x and y records. I'm sure there are various business rules that this would effectively model. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite

Re: [sqlite] Lack of decimal support

2011-03-27 Thread Darren Duncan
of and how does it differ from sum? Also, it's better to call a function mean than avg if that's what is intended, since there are other kinds of averages like median and mode. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http

Re: [sqlite] Lack of decimal support

2011-03-27 Thread Darren Duncan
. Maybe you're just wanting more operators so it is easier to introspect or manipulate them? -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Lack of decimal support

2011-03-26 Thread Darren Duncan
the radix point since that was kept track of along with the number. -- Darren Duncan On Sat, Mar 26, 2011 at 8:15 PM, BareFeetWare list@barefeetware.com wrote: On 27/03/2011, at 12:39 PM, Patrick Earl wrote: Base-10 numbers are frequently used in financial calculations because

Re: [sqlite] Lack of decimal support

2011-03-26 Thread Darren Duncan
Patrick Earl wrote: On Sat, Mar 26, 2011 at 10:03 PM, Darren Duncan dar...@darrenduncan.net wrote: You could store your exact precision numbers as a pair of integers representing a numerator/denominator ratio and then have math operators that work on these pairs like they were one number

Re: [sqlite] Bi-directional unique

2011-02-09 Thread Darren Duncan
in both performance and disk usage. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] Getting a table's field labels with Perl, DBI

2011-01-25 Thread Darren Duncan
: column_info foreign_key_info primary_key_info table_info statistics_info ... and those are described elsewhere on that page. I haven't used those myself, though, but I believe they are popular for others. -- Darren Duncan ___ sqlite-users mailing

Re: [sqlite] pragma vs select for introspection

2010-12-15 Thread Darren Duncan
it would be more on topic. -- Darren Duncan Wols Lists wrote: On 15/12/10 02:47, Darren Duncan wrote: Wols Lists wrote: On 15/12/10 00:18, Darren Duncan wrote: The point I'm making is that a list doesn't contain any ordering *data* - it's inherent in the fact of a list. A list is an abstract

Re: [sqlite] pragma vs select for introspection

2010-12-14 Thread Darren Duncan
on my basic mathematics comment - in a list of rational numbers, what is the ordinal position of the number 1? Normally there isn't an answer to this. The basic proofs of what is infinity rely on the fact that this question has no answer ... -- Darren Duncan

Re: [sqlite] pragma vs select for introspection

2010-12-14 Thread Darren Duncan
to disk when you fsync.) -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] pragma vs select for introspection

2010-12-14 Thread Darren Duncan
Wols Lists wrote: On 15/12/10 00:18, Darren Duncan wrote: The point I'm making is that a list doesn't contain any ordering *data* - it's inherent in the fact of a list. A list is an abstract concept. In Pick, I can store a data structure that IS an abstract list. In an rdbms I can't. Put

Re: [sqlite] pragma vs select for introspection

2010-12-13 Thread Darren Duncan
. (That is also the canonical way to do it in Muldis D.) It is perfectly valid to nest tuples and relations inside each other (these *are* valid 1NF), and so likewise you can have record field values that are sets or arrays or tables or whatever. -- Darren Duncan

Re: [sqlite] pragma vs select for introspection

2010-12-13 Thread Darren Duncan
Wols Lists wrote: On 13/12/10 22:44, Darren Duncan wrote: I am also very interested in these subjects. I believe that the relational model can accurately model anything in the real world, and that this can be implemented in efficient ways, with physical structure taking hints from

Re: [sqlite] pragma vs select for introspection

2010-12-12 Thread Darren Duncan
Wols Lists wrote: On 12/12/10 00:29, Darren Duncan wrote: Nonsense. An information schema is a *good* thing, and is generally the *best* tool for introspecting a database. It lets you use all the power features you have when querying data, anything a SELECT can do, and you can query

Re: [sqlite] pragma vs select for introspection

2010-12-12 Thread Darren Duncan
Darren Duncan wrote: Wols Lists wrote: Dunno how well that approach translates into a relational engine, because Pick has several very non-relational quirks (every row MUST have a primary key, the dictionary DEscribes, not PREscribes the FILE, etc etc). Can you say more about this last

Re: [sqlite] pragma vs select for introspection

2010-12-11 Thread Darren Duncan
the power features you have when querying data, anything a SELECT can do, and you can query the database structure likewise. This is the way a relational database is supposed to work. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http

Re: [sqlite] SQLite-3.7.4 Amalgamation?

2010-12-07 Thread Darren Duncan
-amalgamation unzip to the folder name sqlite-amalgamation-3070400 but -autoconf untars to the folder name sqlite-3.7.4? Why the inconsistent use of version formats? -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org

Re: [sqlite] SQLite-3.7.4 Amalgamation?

2010-12-07 Thread Darren Duncan
Roger Binns wrote: On 12/07/2010 08:45 PM, Darren Duncan wrote: I am also working with automated scripts, which now have to be updated to use either the new style or old style depending on the user-requested SQLite version. (DBD::SQLite bundles a SQLite version, and includes a script

Re: [sqlite] Create Read-only Database

2010-10-10 Thread Darren Duncan
of apply the journal or WAL and then don't change anything further; the latter is also important to support but users should have a choice between the two options. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080

Re: [sqlite] Create Read-only Database

2010-10-10 Thread Darren Duncan
Cory Nelson wrote: On Sun, Oct 10, 2010 at 8:51 PM, Darren Duncan dar...@darrenduncan.net wrote: I think that it should be possible to configure SQLite to be strictly read-only in every respect, such that if with such configuration SQLite is told to open a database that would need

Re: [sqlite] Is there a design doc for the virtual machine re-write?

2010-08-28 Thread Darren Duncan
. This was a completely backwards-compatible change, hence it came in a 0.0.1 version update. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

[sqlite] test DBD::SQLite 1.30_04 - write-ahead logging

2010-08-25 Thread Darren Duncan
updateable by the public; posting in the list can cause an update there by a registered SQLite developer). Please do not reply to me directly with your responses. Instead send them to the forums or file with RT as is appropriate. Thank you. -- Darren Duncan

Re: [sqlite] SQLite version 3.7.0

2010-07-22 Thread Darren Duncan
Roger Binns wrote: On 07/21/2010 08:01 PM, Darren Duncan wrote: Simply substituting in 3.7.0 causes a few new test failures for me with the Perl binding, DBD::SQLite, citing disk I/O error. I can't speak for the Perl binding, but some of the underlying error handling (invalid filenames

Re: [sqlite] SQLite version 3.7.0

2010-07-22 Thread Darren Duncan
work. I'll report here once something's worked out. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] SQLite version 3.7.0

2010-07-21 Thread Darren Duncan
and running make test. Building the same version pristine, without the perl util/getsqlite.pl 3.7.0, passes all tests. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

[sqlite] column types (was Re: Numbers as CHARs)

2010-07-06 Thread Darren Duncan
of the numeric, text, blob, etc types. This is how I see it, and put in those terms, SQLite is still strongly typed, but it is just more flexible than some other DBMSs, those that don't support generic or union types. -- Darren Duncan ___ sqlite-users mailing

Re: [sqlite] alternative to UNIQUE CONSTRAINT

2010-06-28 Thread Darren Duncan
work if the primary key was used.) Separately, as was reported in another reply, this issue is something you should report as a bug to the OpenOffice people, since I think you said an alternate connection method, MS Access worked fine? -- Darren Duncan

Re: [sqlite] alternative to UNIQUE CONSTRAINT

2010-06-25 Thread Darren Duncan
and then you can make that a primary key. Not that I actually advise this since then you're just gaining a new problem or two in place of the one you lost, such as ensuring there's not more than one row in the other table per row in the parent. -- Darren Duncan

Re: [sqlite] Why is there no test suite for ''make check' ?

2010-06-24 Thread Darren Duncan
versions. -- Darren Duncan ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] WAL in SQLite

2010-06-04 Thread Darren Duncan
Richard Hipp wrote: On Thu, Jun 3, 2010 at 11:15 PM, Darren Duncan dar...@darrenduncan.netwrote: Richard Hipp wrote: Partition means that one part of the database cannot communicate with another part. In the usual use of the CAP theorem, this means that the database is spread across multiple

Re: [sqlite] WAL in SQLite

2010-06-03 Thread Darren Duncan
Richard Hipp wrote: On Sat, May 29, 2010 at 5:42 PM, Darren Duncan dar...@darrenduncan.netwrote: 3. Transactions that involve changes against multiple ATTACHed databases are atomic for each individual database, but are not atomic across all databases as a set. I greatly hope

Re: [sqlite] MySQL vs. SQLite

2010-06-01 Thread Darren Duncan
to the database engine to decide how to do the searches most efficiently, the programmer just says how much memory it can use to do so. What are some examples of the proposed SQL replacements that do this? -- Darren Duncan ___ sqlite-users mailing list

Re: [sqlite] MySQL vs. SQLite

2010-06-01 Thread Darren Duncan
Simon Slavin wrote: On 2 Jun 2010, at 1:14am, Darren Duncan wrote: What are some examples of the proposed SQL replacements that do this? You might be interested in NoSQL, or in databases which have no schema: every piece of information is a property of an object. Please note: I am

Re: [sqlite] SQLite turns 10 years old

2010-05-29 Thread Darren Duncan
Congratulations on this milestone. I also just realized now that you're adding WAL to SQLite; I have more to say on this, but that will be in a new thread. -- Darren Duncan D. Richard Hipp wrote: The first code check-in for SQLite occurred on 2000-05-29 14:26 UTC - ten years ago today

  1   2   3   4   5   >