Closed
Description
Describe the bug
ODBC Driver assertion failed
To Reproduce
command to start odbc client:
apt install unixodbc
# config MonetDB in $HOME/.odbc.ini
...
isql monetdb -vInput the following statements:
SELECT avg(42) over (order by row_number() over ());
SELECT 1;It will end up with an assertion failure:
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> SELECT avg(42) over (order by row_number() over ())
[37000][MonetDB][ODBC Driver 11.44.0]unexpected end of file
[ISQL]ERROR: Could not SQLPrepare
SQL> SELECT 1
isql: /root/MonetDB/clients/odbc/driver/ODBCStmt.c:194: destroyODBCStmt: Assertion `stmt->Dbc->FirstStmt' failed.
fish: “isql monetdb -v” terminated by signal SIGABRT (Abort)
Expected behavior
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> SELECT avg(42) over (order by row_number() over ())
[37000][MonetDB][ODBC Driver 11.44.0]unexpected end of file
[ISQL]ERROR: Could not SQLPrepare
SQL> SELECT 1
+-----+
| %2 |
+-----+
| 1 |
+-----+
SQLRowCount returns 1
1 rows fetched
Screenshots
If applicable, add screenshots to help explain your problem.
Software versions
- ODBC Driver version number: MonetDB ODBC Driver 11.44.0
- OS and version: Ubuntu 20.04, UnixODBC 2.3.6
-
- MonetDB Server version number (I think that the server version doesn't matter): MonetDB Database Server v11.43.13 (hg id: ce33b6b12cd6)
**Issue labeling **
Make liberal use of the labels to characterise the issue topics. e.g. identify severity, version, etc..