Re: [sqlite] [EXTERNAL] How to Save NULL data to DB

2018-12-05 Thread Hick Gunter
If you store NULL then SQLite will return NULL. Maybe your presentation layer is converting NULL to text. The literal NULL is used in the query text, or you can call sqlite3_bind_null() for a parameter or sqlite3_result_null() to set the result of a user written function. -Ursprüngliche

Re: [sqlite] Suitability for Macintosh OS 9.2?

2018-12-05 Thread Charles Hudson
Thank you for your reply. I have SQLite running on a dual-boot Win7/Fedora28 machine, and I have already investigated FMPro v.2,3 and 5. I have not tried installing any version of OS X, however; that will be my next avenue of exploration. Thanks once again for your assistance. -CH- On Tue,

[sqlite] How to Save NULL data to DB

2018-12-05 Thread Prajeesh Prakash
Hi Team, How to save NULL parameter into the DB. I saw something like (null) on table but when i am reading from the table it popup as a string not the NULL value. ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org

Re: [sqlite] [EXTERNAL] Number of changes

2018-12-05 Thread Hick Gunter
RTM. Sqlite3_total_changes() counts the *total* number of changes done since the connection was opened. To get the number of changes made by the *last statement*, use sqlite3_changes(). This applies only to connections that are not shared between threads. -Ursprüngliche Nachricht-

Re: [sqlite] [EXTERNAL] Number of changes

2018-12-05 Thread Prajeesh Prakash
Thank you i tried sqlite3_changes() but in that case i INSERT 2 rows but it gave 1. > > On December 5, 2018 at 5:51 PM Hick Gunter wrote: > > RTM. > > Sqlite3_total_changes() counts the *total* number of changes done since > the connection was opened. To get the number of

[sqlite] WG: [EXTERNAL] Number of changes

2018-12-05 Thread Hick Gunter
Von: Prajeesh Prakash [mailto:prajeeshprakash@elear.solutions] Gesendet: Mittwoch, 05. Dezember 2018 13:47 An: SQLite mailing list ; Hick Gunter Betreff: Re: [sqlite] [EXTERNAL] Number of changes Thank you i tried sqlite3_changes() but in that case i INSERT 2 rows but it gave 1. On

[sqlite] WG: [EXTERNAL] Number of changes

2018-12-05 Thread Hick Gunter
Show what you executed. Make sure that there is no interference from other threads on the same connection. If you execute more than 1 statement in one call to sqlite3_exec(), only the last INSERT/UPDATE/DELETE will determine the return value of sqlite3_changes(). If you want the aggregate

[sqlite] Number of changes

2018-12-05 Thread Prajeesh Prakash
Hi team, How we can find the number of changes done on a particular table in DB using sqlite3 library function (C program). I tried with sqlite3_total_changes() but its doesn't helps me. I am writing only one record but its giving me 22 records. At present my db contains 23 table and i tried

Re: [sqlite] Corrupted database: On tree page 76852 cell 303: Rowid 18741471 out of order

2018-12-05 Thread Ryan Schmidt
On Dec 4, 2018, at 22:42, Simon Slavin wrote: > On 5 Dec 2018, at 3:20am, Ryan Schmidt wrote: > >> $ sqlite3 /opt/local/var/macports/registry/registry.db >> SQLite version 3.25.2 2018-09-25 19:08:10 >> Enter ".help" for usage hints. >> sqlite> .load /tmp/macports.sqlext >> sqlite> pragma

Re: [sqlite] [EXTERNAL] Number of changes

2018-12-05 Thread Hick Gunter
Just as I said. You are executing *TWO* SEPARATE *INSERTS* OF *1 CHANGE* EACH. So sqlite3_changes() reports 1 change (from the second INSERT), just as it is supposed to. If you call sqlite3_total_changes() before executing the inserts and again afterwards, the *difference* of the returned

Re: [sqlite] Corrupted database: On tree page 76852 cell 303: Rowid 18741471 out of order

2018-12-05 Thread Simon Slavin
On 5 Dec 2018, at 12:22pm, Ryan Schmidt wrote: > Since I don't know what else may have gone wrong with the contents of the > registry by this point, it seems safer to erase the MacPorts installation and > start fresh. This will take a bit longer as every port has to be re-fetched > and

Re: [sqlite] Failure to rename table in 3.25 and 3.26

2018-12-05 Thread Dan Kennedy
On 12/03/2018 10:37 AM, Philip Warner wrote: Tables with complex triggers (possibly limited to "Insert...With", though that is not clear), fail with "no such table". Thanks for reporting this. The bug was that table and column names within WITH clauses in the schema were not being

Re: [sqlite] [EXTERNAL] Re: sqlite3_bind_text() and WHERE x IN (?)

2018-12-05 Thread Hick Gunter
... which is what SQLite does internally if you provide a list of literal values inside the parentheses. In some cases, SQLite 3.24 has been observed to use such an ephemeral table as the outer table of a join; with detrimental effects on query performance and no CROSS JOIN syntax available to

Re: [sqlite] sqlite3_bind_text() and WHERE x IN (?)

2018-12-05 Thread James K. Lowden
On Fri, 30 Nov 2018 23:25:48 +0900 Simon Walter wrote: > > SELECT id, data FROM val WHERE id IN ("1, 893, 121212"); ... > I have no idea yet if MySQL and/or PostgreSQL can handle this > scenario and how they do it. The important thing to understand about parameterized queries is that they are

Re: [sqlite] Corrupted database: On tree page 76852 cell 303: Rowid 18741471 out of order

2018-12-05 Thread James K. Lowden
On Wed, 5 Dec 2018 05:21:30 + Simon Slavin wrote: > On 5 Dec 2018, at 5:16am, Ryan Schmidt wrote: > > > https://kb.vmware.com/s/article/1008542 > > > > "VMware ESX acknowledges a write or read to a guest operating > > system only after that write or read is acknowledged by the > >