Qgis3 imports DATE type column in oracle Database as QDate, loosing hh:mm:ss #28559
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Data Provider
Related to specific vector, raster or mesh data providers
Author Name: Friedrich Meckel (Friedrich Meckel)
Original Redmine Issue: 20739
Affected QGIS version: 3.4.2
Redmine category:data_provider/oracle
Assignee: Jürgen Fischer
Hello Community,
I am at the moment working on a lift for an Qgis2 plugin to work with Qgis3.
The plugin specifies a QgsDataSourceUri and uses it in an QgsVectorLayer.
In the specific table, laying in an Oracle database, there is a column which is not named 'date' but a german name.
The type of that column is DATE type, therefore containing year, month, day, hour, minute and second.
In Qgis2.10 this column was automaitcally converted to an QDateTime object by the constructor.
In Qgis3.4.2 however this column is converted to QDate, losing the hours, minutes and seconds by that.
In the documentation I cannot find any explanation on how to specify the way a column is converted to prevent that Dataloss.
Therefore I create this ticket as a bug.
The text was updated successfully, but these errors were encountered: