After the update when I updated from beta 275 to beta 303, when I open a page created with the old version I get the error "Expected unsigned integer at id, got 5,5". Also, when I try to access a page from the administration area I get a "An unexpected error occured."
Finally I can't create any new page because I get the error "GraphQL error: both cols and values must have same dimensions".
To Reproduce
Error on opening:
Expected behavior
Access the page and/or create new pages.
Host Info (please complete the following information):
The problem seems to be that getPageFromDb() in \server\models\pages.js adds pages.* to the list of selected columns and a calling method now adds column pages.id, which causes MS SQL to return two columns both named id.
Replacing 'pages.*' with the following explicit list of columns seems to resolve the problem.
It worked for me!
Most helpful comment
The problem seems to be that getPageFromDb() in \server\models\pages.js adds
pages.*to the list of selected columns and a calling method now adds columnpages.id, which causes MS SQL to return two columns both named id.Replacing
'pages.*'with the following explicit list of columns seems to resolve the problem.'pages.id',
'pages.path',
'pages.hash',
'pages.title',
'pages.description',
'pages.isPrivate',
'pages.isPublished',
'pages.privateNS',
'pages.publishStartDate',
'pages.publishEndDate',
'pages.content',
'pages.render',
'pages.toc',
'pages.contentType',
'pages.createdAt',
'pages.updatedAt',
'pages.editorKey',
'pages.localeCode',
'pages.authorId',
'pages.creatorId',