Feed Advanced Search

Jan 1 2019

pino added a comment to D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).

Shorter: what change in kdb_sqlitedriver.json do you propose?

Jan 1 2019, 5:53 PM · KDb
staniek added a comment to D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).
In D17887#384666, @pino wrote:

If I understand correctly if we do not explicitly list "application/vnd.sqlite3" in the JSON, current FD.o master https://cgit.freedesktop.org/xdg/shared-mime-info/commit/freedesktop.org.xml.in?id=36a88b01f6ae90da35a2f6a072db159c84cea768 resolves "application/vnd.sqlite3" into "application/x-kexiproject-sqlite3" only if we go to parent mime type "application/x-sqlite3" which is alias of real parent "application/vnd.sqlite3". I see that "application/x-kexiproject-sqlite3" has room for improvements. I do not see that we use QMimeType::parentMimeTypes().

I don't see what parent mimetypes have anything to do with this. There is no parent lookup neither "is a" checking in the plugin loader, all it does is "supports this mimetype".
Do not overthink the issue, really...

Jan 1 2019, 5:41 PM · KDb
pino added a comment to D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).

If I understand correctly if we do not explicitly list "application/vnd.sqlite3" in the JSON, current FD.o master https://cgit.freedesktop.org/xdg/shared-mime-info/commit/freedesktop.org.xml.in?id=36a88b01f6ae90da35a2f6a072db159c84cea768 resolves "application/vnd.sqlite3" into "application/x-kexiproject-sqlite3" only if we go to parent mime type "application/x-sqlite3" which is alias of real parent "application/vnd.sqlite3". I see that "application/x-kexiproject-sqlite3" has room for improvements. I do not see that we use QMimeType::parentMimeTypes().

Jan 1 2019, 4:26 PM · KDb

Dec 31 2018

staniek added inline comments to D17336: Restore support for date/time constants in KEXI SQL.
Dec 31 2018, 8:20 PM · KDb
staniek added a comment to D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).

Thanks Pino. Your patch adds some future-proof, I would adapt it. But I yet have to see how the problem is solved without patching of the json file. If I understand correctly if we do not explicitly list "application/vnd.sqlite3" in the JSON, current FD.o master https://cgit.freedesktop.org/xdg/shared-mime-info/commit/freedesktop.org.xml.in?id=36a88b01f6ae90da35a2f6a072db159c84cea768 resolves "application/vnd.sqlite3" into "application/x-kexiproject-sqlite3" only if we go to parent mime type "application/x-sqlite3" which is alias of real parent "application/vnd.sqlite3". I see that "application/x-kexiproject-sqlite3" has room for improvements. I do not see that we use QMimeType::parentMimeTypes().

Dec 31 2018, 7:22 PM · KDb
piggz accepted D17336: Restore support for date/time constants in KEXI SQL.
Dec 31 2018, 7:09 PM · KDb
piggz added inline comments to D17336: Restore support for date/time constants in KEXI SQL.
Dec 31 2018, 7:09 PM · KDb
pino added a comment to D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).

OK, second attempt (still untested!), resolving mimetypes on lookup:

Dec 31 2018, 5:39 PM · KDb
pino added a comment to D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).

Ah your test is for something else than I wrote above and might be useful but I just learned that we never know (like in the case of the linked FD.o change) what happens on user's OS and whether the OS provide type alias or regular type as a result of detection. So I'd be safer if we handle all mime types and aliases declared by the plugins.

Dec 31 2018, 5:31 PM · KDb
staniek added a comment to D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).

m_metadata_by_mimetype's key is string so application/x-foo and application/x-foo-alias are two different keys that here point to the same plugin. User's code is free to ask about either type by name.

Dec 31 2018, 5:31 PM · KDb
staniek added a comment to D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).

Ah your test is for something else than I wrote above and might be useful but I just learned that we never know (like in the case of the linked FD.o change) what happens on user's OS and whether the OS provide type alias or regular type as a result of detection. So I'd be safer if we handle all mime types and aliases declared by the plugins.

Dec 31 2018, 5:28 PM · KDb
pino added a comment to D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).
In D17887#384384, @pino wrote:

The QSet is used to avoid that the same metadats is registered twice in m_metadata_by_mimetype for the same mimetype, in case a plugin specifies two entries (mime name and one alias of it).

Thanks. Interesting though m_metadata_by_mimetype.insertMulti(mimeType, metaData.data()) is used for a purpose, it's valid case to have multiple plugins supporting the same type.

Dec 31 2018, 5:26 PM · KDb
staniek added a comment to D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).
In D17887#384384, @pino wrote:
Dec 31 2018, 5:19 PM · KDb
pino added a comment to D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).

Another option could be to resolve the mimetypes when loading the metadata of the plugins, in DriverManagerInternal::lookupDriversInternal().

Dec 31 2018, 4:47 PM · KDb
staniek updated the summary of D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).
Dec 31 2018, 4:03 PM · KDb
staniek requested review of D17887: Fix detection of .kexi file types after recent change of mime database on Linux for SQLite type (2018-06-17).
Dec 31 2018, 4:02 PM · KDb

Dec 28 2018

staniek added a comment to D17336: Restore support for date/time constants in KEXI SQL.

@piggz Done in kexi.git: D17847.

Dec 28 2018, 9:29 PM · KDb
staniek updated the test plan for D17336: Restore support for date/time constants in KEXI SQL.
Dec 28 2018, 9:28 PM · KDb
staniek added a revision to T10134: [sql] Restore support for date/time constants in KEXI SQL: D17847: Fix crash on failed opening of query in Design view.
Dec 28 2018, 9:26 PM · KDb
staniek added a comment to D17336: Restore support for date/time constants in KEXI SQL.

Following BT when doing the action:
Open database
Right click on query and select Design
When prompted that cannot open in design view, select option to open in text view
Crash

Dec 28 2018, 8:42 PM · KDb

Dec 27 2018

piggz added a comment to D17336: Restore support for date/time constants in KEXI SQL.

P.S. i got query to work by arranging date as yyyy-mm-dd .... i had used dd-mm-yyyy

Dec 27 2018, 7:05 PM · KDb
piggz added a comment to D17336: Restore support for date/time constants in KEXI SQL.

Following BT when doing the action:
Open database
Right click on query and select Design
When prompted that cannot open in design view, select option to open in text view
Crash

Dec 27 2018, 7:04 PM · KDb

Dec 25 2018

staniek added a comment to D17336: Restore support for date/time constants in KEXI SQL.

I tested a simple expression, such as
select #date# as expr1
and it worked
But a more complex query such as
SELECT mi_band_activity.*, timestamp_dt FROM mi_band_activity where timestamp_dt > #23-May-2018#

Dec 25 2018, 10:12 PM · KDb
piggz added a comment to D17336: Restore support for date/time constants in KEXI SQL.

I tested a simple expression, such as
select #date# as expr1
and it worked
But a more complex query such as
SELECT mi_band_activity.*, timestamp_dt FROM mi_band_activity where timestamp_dt > #23-May-2018#
does not work, gives the following output:
org.kde.kdb.core: checking variable name: "mi_band_activity.*"
org.kde.kdb.core: checking variable name: "timestamp_dt"
org.kde.kdb.core: checking variable name: "timestamp_dt"
org.kde.kdb.core: error:
org.kde.kdb.core: at character 95 near tooken "#"
org.kde.kdb.core: KDbEscapedString:"SELECT mi_band_activity.*, timestamp_dt FROM mi_band_activity where timestamp_dt > #23-05-2018#"

Dec 25 2018, 9:05 PM · KDb

Dec 18 2018

staniek added a comment to D17336: Restore support for date/time constants in KEXI SQL.

@piggz Sorry, updated now, I had to type arc diff --update D17336 --no-amend.

Dec 18 2018, 10:59 PM · KDb
staniek updated the diff for D17336: Restore support for date/time constants in KEXI SQL.
  • GIT_SILENT KDb VERSION 3.1.1
  • Add Date/Time classes for precise type support
  • Add autotests for the KDb date/time classes
  • Add support for the Date/Time constants in the SQL parser
  • Add autotests for date/time related KDBSQL statements
  • Merge remote-tracking branch 'origin/3.1' into 393094-date-constants
  • Version 3.2.0
  • Merge remote-tracking branch 'origin/3.2' into 393094-date-constants
  • Merge branch '3.2' into 393094-date-constants
Dec 18 2018, 10:57 PM · KDb
piggz added a comment to D17336: Restore support for date/time constants in KEXI SQL.

I used arc patch D17336 on kdb
I get errors like
org.kde.kdb.core: error: syntax error, unexpected $undefined, expecting $end
org.kde.kdb.core: at character 8 near tooken "#"
org.kde.kdb.core: KDbEscapedString:"select #2018-05-23#"
org.kde.kdb.core: " ^"

Dec 18 2018, 9:50 PM · KDb

Dec 17 2018

staniek reopened D17336: Restore support for date/time constants in KEXI SQL.
Dec 17 2018, 10:47 PM · KDb

Dec 13 2018

staniek closed D17336: Restore support for date/time constants in KEXI SQL.
Dec 13 2018, 4:21 PM · KDb
staniek updated the diff for D17336: Restore support for date/time constants in KEXI SQL.
  • Merge branch '3.2' into 393094-date-constants
Dec 13 2018, 4:15 PM · KDb
staniek reopened D17336: Restore support for date/time constants in KEXI SQL.
Dec 13 2018, 4:14 PM · KDb
staniek closed D17336: Restore support for date/time constants in KEXI SQL.
Dec 13 2018, 1:56 PM · KDb
staniek updated the summary of D17336: Restore support for date/time constants in KEXI SQL.
Dec 13 2018, 1:55 PM · KDb
staniek updated the test plan for D17336: Restore support for date/time constants in KEXI SQL.
Dec 13 2018, 1:54 PM · KDb
staniek updated the diff for D17336: Restore support for date/time constants in KEXI SQL.
  • Version 3.2.0
  • Merge remote-tracking branch 'origin/3.2' into 393094-date-constants
Dec 13 2018, 1:54 PM · KDb

Dec 10 2018

staniek added inline comments to D17336: Restore support for date/time constants in KEXI SQL.
Dec 10 2018, 1:57 PM · KDb

Dec 9 2018

staniek updated the diff for D17336: Restore support for date/time constants in KEXI SQL.
  • Merge remote-tracking branch 'origin/3.1' into 393094-date-constants
Dec 9 2018, 8:18 PM · KDb

Dec 3 2018

staniek updated the test plan for D17336: Restore support for date/time constants in KEXI SQL.
Dec 3 2018, 5:36 PM · KDb
staniek updated the task description for T10134: [sql] Restore support for date/time constants in KEXI SQL.
Dec 3 2018, 4:33 PM · KDb
staniek updated the task description for T10134: [sql] Restore support for date/time constants in KEXI SQL.
Dec 3 2018, 4:32 PM · KDb
staniek updated the task description for T10134: [sql] Restore support for date/time constants in KEXI SQL.
Dec 3 2018, 4:31 PM · KDb
staniek updated the test plan for D17336: Restore support for date/time constants in KEXI SQL.
Dec 3 2018, 4:24 PM · KDb
staniek updated the diff for D17336: Restore support for date/time constants in KEXI SQL.
  • Add autotests for date/time related KDBSQL statements
Dec 3 2018, 4:23 PM · KDb
staniek added a revision to T10134: [sql] Restore support for date/time constants in KEXI SQL: D17336: Restore support for date/time constants in KEXI SQL.
Dec 3 2018, 4:17 PM · KDb
staniek added a task to D17336: Restore support for date/time constants in KEXI SQL: T10134: [sql] Restore support for date/time constants in KEXI SQL.
Dec 3 2018, 4:17 PM · KDb
staniek updated the test plan for D17336: Restore support for date/time constants in KEXI SQL.
Dec 3 2018, 4:16 PM · KDb
staniek updated the summary of D17336: Restore support for date/time constants in KEXI SQL.
Dec 3 2018, 4:15 PM · KDb
staniek added reviewers for D17336: Restore support for date/time constants in KEXI SQL: dczechowicz, wkosowicz.
Dec 3 2018, 4:15 PM · KDb
staniek requested review of D17336: Restore support for date/time constants in KEXI SQL.
Dec 3 2018, 4:12 PM · KDb
staniek updated the task description for T10134: [sql] Restore support for date/time constants in KEXI SQL.
Dec 3 2018, 4:05 PM · KDb
staniek updated the task description for T10134: [sql] Restore support for date/time constants in KEXI SQL.
Dec 3 2018, 10:18 AM · KDb

Nov 27 2018

staniek updated the task description for T10134: [sql] Restore support for date/time constants in KEXI SQL.
Nov 27 2018, 11:45 PM · KDb
staniek added a comment to T10134: [sql] Restore support for date/time constants in KEXI SQL.

Nov 27 2018, 10:12 AM · KDb
staniek renamed T10134: [sql] Restore support for date/time constants in KEXI SQL from Restore support for date/time constants in KEXI SQL to [sql] Restore support for date/time constants in KEXI SQL.
Nov 27 2018, 10:06 AM · KDb
staniek triaged T10134: [sql] Restore support for date/time constants in KEXI SQL as High priority.
Nov 27 2018, 10:06 AM · KDb

Jun 15 2018

staniek closed D13472: Fix input of large unsigned int values (>0x7FFFFFFF).
Jun 15 2018, 9:17 PM · KDb

Jun 14 2018

piggz accepted D13472: Fix input of large unsigned int values (>0x7FFFFFFF).
Jun 14 2018, 9:06 PM · KDb

Jun 10 2018

staniek updated the test plan for D13472: Fix input of large unsigned int values (>0x7FFFFFFF).
Jun 10 2018, 9:26 PM · KDb
staniek added a dependency for D13472: Fix input of large unsigned int values (>0x7FFFFFFF): D13473: Fix validation of values in default input box of table view.
Jun 10 2018, 9:25 PM · KDb
staniek requested review of D13472: Fix input of large unsigned int values (>0x7FFFFFFF).
Jun 10 2018, 9:16 PM · KDb

Jun 9 2018

staniek closed D13448: SQLite Fix loading value Incorrect display of large unsigned int (>0x7FFFFFFF).
Jun 9 2018, 10:02 PM · KDb
piggz accepted D13448: SQLite Fix loading value Incorrect display of large unsigned int (>0x7FFFFFFF).
Jun 9 2018, 9:41 PM · KDb
staniek added a comment to D13448: SQLite Fix loading value Incorrect display of large unsigned int (>0x7FFFFFFF).

Other drivers affected?

Jun 9 2018, 9:40 PM · KDb
piggz added a comment to D13448: SQLite Fix loading value Incorrect display of large unsigned int (>0x7FFFFFFF).

Other drivers affected?

Jun 9 2018, 9:38 PM · KDb
staniek retitled D13448: SQLite Fix loading value Incorrect display of large unsigned int (>0x7FFFFFFF) from Fix loading value Incorrect display of large unsigned int (>0x7FFFFFFF) to SQLite Fix loading value Incorrect display of large unsigned int (>0x7FFFFFFF).
Jun 9 2018, 8:57 PM · KDb
staniek updated the diff for D13448: SQLite Fix loading value Incorrect display of large unsigned int (>0x7FFFFFFF).

Add note that the bug is for SQLite

Jun 9 2018, 8:57 PM · KDb
staniek requested review of D13448: SQLite Fix loading value Incorrect display of large unsigned int (>0x7FFFFFFF).
Jun 9 2018, 8:54 PM · KDb

May 29 2018

staniek renamed T8889: [doc] Add small example project to demo usage with qmake from Add small example project to demo usage with qmake to [doc] Add small example project to demo usage with qmake.
May 29 2018, 8:25 AM · KProperty, KReport, KDb
staniek triaged T8889: [doc] Add small example project to demo usage with qmake as Low priority.
May 29 2018, 8:25 AM · KProperty, KReport, KDb

May 16 2018

staniek closed D12873: Fix handling ORDER BY part of queries.
May 16 2018, 8:16 AM · KDb
piggz accepted D12873: Fix handling ORDER BY part of queries.

Surprising how many changes for one crash!

May 16 2018, 6:16 AM · KDb

May 14 2018

staniek updated the test plan for D12873: Fix handling ORDER BY part of queries.
May 14 2018, 12:17 PM · KDb
staniek requested review of D12873: Fix handling ORDER BY part of queries.
May 14 2018, 12:16 PM · KDb

Apr 9 2018

staniek closed D11547: Add KDbConnection::drv_getTableNames for low level list of table names, make tableNames() skip names with non-existing physical tables.
Apr 9 2018, 9:54 AM · KDb

Apr 3 2018

piggz accepted D11547: Add KDbConnection::drv_getTableNames for low level list of table names, make tableNames() skip names with non-existing physical tables.
Apr 3 2018, 6:18 AM · KDb

Mar 26 2018

staniek added inline comments to D11547: Add KDbConnection::drv_getTableNames for low level list of table names, make tableNames() skip names with non-existing physical tables.
Mar 26 2018, 10:25 PM · KDb
staniek updated the diff for D11547: Add KDbConnection::drv_getTableNames for low level list of table names, make tableNames() skip names with non-existing physical tables.
  • MissingTableTest: call again with ok == nullptr and verify
  • Rework KDbConnection::drv_getTableNames API so error information is passed
Mar 26 2018, 10:23 PM · KDb

Mar 23 2018

staniek updated the diff for D11547: Add KDbConnection::drv_getTableNames for low level list of table names, make tableNames() skip names with non-existing physical tables.
  • MissingTableTest: call again with ok == nullptr and verify
  • Rework KDbConnection::drv_getTableNames API so error information is passed
Mar 23 2018, 10:13 PM · KDb
piggz added inline comments to D11547: Add KDbConnection::drv_getTableNames for low level list of table names, make tableNames() skip names with non-existing physical tables.
Mar 23 2018, 10:01 PM · KDb
staniek added inline comments to D11547: Add KDbConnection::drv_getTableNames for low level list of table names, make tableNames() skip names with non-existing physical tables.
Mar 23 2018, 9:40 PM · KDb
piggz added inline comments to D11547: Add KDbConnection::drv_getTableNames for low level list of table names, make tableNames() skip names with non-existing physical tables.
Mar 23 2018, 8:00 PM · KDb

Mar 21 2018

staniek requested review of D11547: Add KDbConnection::drv_getTableNames for low level list of table names, make tableNames() skip names with non-existing physical tables.
Mar 21 2018, 11:33 AM · KDb

Feb 14 2018

staniek added a comment to D10477: Add python 3 support for SDC.

Pushed. Congratulations on first KEXI/KDb contribution!
https://phabricator.kde.org/R15:7e5633c36316cd8cf180eae982c5bc4574bb62bf

Feb 14 2018, 10:49 AM · KDb
staniek closed D10477: Add python 3 support for SDC.
Feb 14 2018, 10:47 AM · KDb
kavindap added a comment to D10477: Add python 3 support for SDC.

It's harindudilshan95@gmail.com .

Feb 14 2018, 12:14 AM · KDb

Feb 13 2018

staniek added a comment to D10477: Add python 3 support for SDC.

OK I will, what's your email address?

Feb 13 2018, 5:15 PM · KDb
kavindap added a comment to D10477: Add python 3 support for SDC.

As I don't have write access, would you please land it ?

Feb 13 2018, 4:48 PM · KDb
staniek accepted D10477: Add python 3 support for SDC.

Good job, thanks! Two things:

Feb 13 2018, 10:41 AM · KDb
staniek retitled D10477: Add python 3 support for SDC from Python 3 support to Add python 3 support for SDC.
Feb 13 2018, 10:40 AM · KDb
kavindap requested review of D10477: Add python 3 support for SDC.
Feb 13 2018, 6:45 AM · KDb

Feb 11 2018

staniek updated the task description for T3743: Don't keep generated parser/scanner files in the source dir.
Feb 11 2018, 10:53 PM · KDb

Feb 5 2018

staniek closed D10254: Prepare KDb for release wrt versioning, dependencies and docs.
Feb 5 2018, 11:22 PM · KDb
piggz accepted D10254: Prepare KDb for release wrt versioning, dependencies and docs.
Feb 5 2018, 10:15 PM · KDb

Feb 4 2018

staniek added a reviewer for D10254: Prepare KDb for release wrt versioning, dependencies and docs: pino.
Feb 4 2018, 11:03 PM · KDb
staniek updated the diff for D10254: Prepare KDb for release wrt versioning, dependencies and docs.
  • Update README-PACKAGERS doc to reflect naming and notes about compatibility
  • Bump soname to separate from incompatible 3.0 branch
Feb 4 2018, 11:02 PM · KDb

Feb 3 2018

staniek edited Description on KDb.
Feb 3 2018, 1:04 AM

Feb 2 2018

staniek retitled D10254: Prepare KDb for release wrt versioning, dependencies and docs from Prepare KDb for release wrt versioning and to Prepare KDb for release wrt versioning, dependencies and docs.
Feb 2 2018, 8:15 PM · KDb

Jan 27 2018

staniek moved T3749: Refresh and correct API docs using kapidox from Backlog to Docs on the KEXI board.
Jan 27 2018, 9:43 PM · KEXI, KProperty, KReport, KDb

Jan 19 2018

staniek closed D7572: Fix dependency loop.
Jan 19 2018, 12:24 PM · KDb
staniek updated the diff for D7572: Fix dependency loop.
  • GIT_SILENT SDC file is really generated
Jan 19 2018, 12:14 PM · KDb