In D17887#384686, @staniek wrote:Shorter: what change in kdb_sqlitedriver.json do you propose?
- Queries
- All Stories
- Search
- Advanced Search
Feed Advanced Search
Advanced Search
Advanced Search
Jan 1 2019
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).
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:In D17887#384476, @staniek 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...
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#384476, @staniek 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().
Dec 31 2018
Dec 31 2018
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().
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:
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#384418, @staniek wrote: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.
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.
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.
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#384409, @staniek wrote: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.
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:
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 28 2018
Dec 28 2018
In D17336#382812, @piggz wrote: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
Dec 27 2018
P.S. i got query to work by arranging date as yyyy-mm-dd .... i had used dd-mm-yyyy
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 25 2018
Dec 25 2018
In D17336#382289, @piggz wrote: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#
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 18 2018
Dec 18 2018
@piggz Sorry, updated now, I had to type arc diff --update D17336 --no-amend.
- 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
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 17 2018
Dec 17 2018
Dec 13 2018
Dec 13 2018
- Merge branch '3.2' into 393094-date-constants
- Version 3.2.0
- Merge remote-tracking branch 'origin/3.2' into 393094-date-constants
Dec 10 2018
Dec 10 2018
Dec 9 2018
Dec 9 2018
- Merge remote-tracking branch 'origin/3.1' into 393094-date-constants
Dec 3 2018
Dec 3 2018
staniek updated the task description for T10134: [sql] Restore support for date/time constants in KEXI SQL.
staniek updated the task description for T10134: [sql] Restore support for date/time constants in KEXI SQL.
staniek updated the task description for T10134: [sql] Restore support for date/time constants in KEXI SQL.
- Add autotests for date/time related KDBSQL statements
staniek added reviewers for D17336: Restore support for date/time constants in KEXI SQL: dczechowicz, wkosowicz.
staniek updated the task description for T10134: [sql] Restore support for date/time constants in KEXI SQL.
staniek updated the task description for T10134: [sql] Restore support for date/time constants in KEXI SQL.
Nov 27 2018
Nov 27 2018
staniek updated the task description for T10134: [sql] Restore support for date/time constants in KEXI SQL.
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.
Jun 15 2018
Jun 15 2018
Jun 14 2018
Jun 14 2018
Jun 10 2018
Jun 10 2018
Jun 9 2018
Jun 9 2018
staniek added a comment to D13448: SQLite Fix loading value Incorrect display of large unsigned int (>0x7FFFFFFF).
In D13448#276358, @piggz wrote:Other drivers affected?
piggz added a comment to D13448: SQLite Fix loading value Incorrect display of large unsigned int (>0x7FFFFFFF).
Other drivers affected?
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).
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
May 29 2018
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 16 2018
May 16 2018
Surprising how many changes for one crash!
May 14 2018
May 14 2018
Apr 9 2018
Apr 9 2018
Apr 3 2018
Apr 3 2018
Mar 26 2018
Mar 26 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
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 21 2018
Mar 21 2018
Feb 14 2018
Feb 14 2018
Pushed. Congratulations on first KEXI/KDb contribution!
https://phabricator.kde.org/R15:7e5633c36316cd8cf180eae982c5bc4574bb62bf
It's harindudilshan95@gmail.com .
Feb 13 2018
Feb 13 2018
OK I will, what's your email address?
As I don't have write access, would you please land it ?
Good job, thanks! Two things:
staniek retitled D10477: Add python 3 support for SDC from Python 3 support to Add python 3 support for SDC.
Feb 11 2018
Feb 11 2018
staniek updated the task description for T3743: Don't keep generated parser/scanner files in the source dir.
Feb 5 2018
Feb 5 2018
Feb 4 2018
Feb 4 2018
staniek added a reviewer for D10254: Prepare KDb for release wrt versioning, dependencies and docs: pino.
- Update README-PACKAGERS doc to reflect naming and notes about compatibility
- Bump soname to separate from incompatible 3.0 branch
Feb 3 2018
Feb 3 2018
Feb 2 2018
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.
Jan 27 2018
Jan 27 2018
staniek moved T3749: Refresh and correct API docs using kapidox from Backlog to Docs on the KEXI board.
Jan 19 2018
Jan 19 2018
- GIT_SILENT SDC file is really generated