You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
When using Fix Model the source of Materialized Views get an extra semi-colon at the end. And then another extra semi-colon appears when you view the Source.
How to reproduce
When opening our model from 1.0.5 in 1.1.1 we got some XML errors so I used the Fix Model button.
Expected behavior
No changes to the SQL definition of Materialized Views.
Screenshots If applicable, add screenshots to help explain your problem.
Info about your desktop
OS: Windows 10 Pro
Version: 22H2
Window manager:
pgModeler version: 1.1.1 20240314.20240314
Qt version: 6.6.2
Stacktrace / Debug info
The crash happened before noticing the bug, but I'm not sure this specific crash is related to it happening or if any use of Fix Model would reproduce the effect.
[0] src/mainwindow.cpp (2101)
void MainWindow::showFixMessage(Exception&, const QString&)
[ModelFileNotLoaded] Could not load the database model file `U:/PG Models/pg_web-v15.1.dbm'. Check the error stack to see details. Try to run `pgmodeler-cli --fix-model' in order to correct the structure of the file if that is the case.
[1] src/mainwindow.cpp (1300)
void MainWindow::addModel(const QString&)
[InvModelFileNotLoaded] Could not load file `U:/PG Models/pg_web-v15.1.dbm'. The same appears to be inconsistent or one of its dependencies (DTD files) has errors or is missing!
[2] src/mainwindow.cpp (1274)
void MainWindow::addModel(const QString&)
[InvModelFileNotLoaded] Could not load file `U:/PG Models/pg_web-v15.1.dbm'. The same appears to be inconsistent or one of its dependencies (DTD files) has errors or is missing!
[3] src/widgets/modelwidget.cpp (1822)
void ModelWidget::loadModel(const QString&)
[InvModelFileNotLoaded] Could not load file `U:/PG Models/pg_web-v15.1.dbm'. The same appears to be inconsistent or one of its dependencies (DTD files) has errors or is missing!
[4] src/databasemodel.cpp (3588)
void DatabaseModel::loadModel(const QString&)
[InvModelFileNotLoaded] Could not load file `U:/PG Models/pg_web-v15.1.dbm'. The same appears to be inconsistent or one of its dependencies (DTD files) has errors or is missing!
[5] src/xmlparser.cpp (84)
void XmlParser::loadXMLFile(const QString&)
[LibXMLError] Error while interpreting XML buffer at line 0 column 0.
Message generated by the parser: Element view content does not follow the DTD, expecting (schema , role? , tablespace? , comment? , tag? , appended-sql? , prepended-sql? , position , reference* , simplecol* , definition), got (schema role position reference) .
** U:/PG Models/pg_web-v15.1.dbm
[6] src/xmlparser.cpp (115)
void XmlParser::loadXMLBuffer(const QString&)
[LibXMLError] Error while interpreting XML buffer at line 0 column 0.
Message generated by the parser: Element view content does not follow the DTD, expecting (schema , role? , tablespace? , comment? , tag? , appended-sql? , prepended-sql? , position , reference* , simplecol* , definition), got (schema role position reference) .
[7] src/xmlparser.cpp (188)
void XmlParser::readBuffer()
[LibXMLError] Error while interpreting XML buffer at line 0 column 0.
Message generated by the parser: Element view content does not follow the DTD, expecting (schema , role? , tablespace? , comment? , tag? , appended-sql? , prepended-sql? , position , reference* , simplecol* , definition), got (schema role position reference) .
Additional info
I only happened to find this because I diffed the two models in a text editor to see what was changed in the fixed model.
The text was updated successfully, but these errors were encountered:
Bug description
When using Fix Model the source of Materialized Views get an extra semi-colon at the end. And then another extra semi-colon appears when you view the Source.
How to reproduce
When opening our model from 1.0.5 in 1.1.1 we got some XML errors so I used the Fix Model button.
Expected behavior
No changes to the SQL definition of Materialized Views.
Screenshots
If applicable, add screenshots to help explain your problem.
Info about your desktop
Stacktrace / Debug info
The crash happened before noticing the bug, but I'm not sure this specific crash is related to it happening or if any use of Fix Model would reproduce the effect.
Additional info
I only happened to find this because I diffed the two models in a text editor to see what was changed in the fixed model.
The text was updated successfully, but these errors were encountered: