I have two servers, one Red Hat and one SuSE. Both have the ODBC for SAP Hana client installed, and both have an ODBC DSN configured to connect into the same Hana database. I'm able to use unixODBC isql on either system to connect into the database and run queries.
However, I notice a difference in behavior when I use the -n option in isql. On Red Hat, when I end a line with a semicolon, it executes the statement. On SuSE, a "GO" command is still needed after the semicolon. I'm running the same version of UnixODBC on both systems. Does anyone know why the behavior is different? Is there documentation explaining this difference somewhere?
I'm still looking for a response to this one. I asked the same question in an SAP Hana forum and they directed me to unixODBC for an answer. Does anyone have any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, Sorry, missed this. I will have to guess. It is clearly to do with how the two distrobutions build their isql, and I suspect it may be related to the use or not of the readline lib. My copy built from source will take the prescense of ";"in the last char of the line as the direction to execute the staement. So, with that in mind, I think the SuSE version is possibly returning a space after the ";" so it requires a explicit "go" to execute. But assuming they both used the same code it has to be down to how they built their versions.
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have two servers, one Red Hat and one SuSE. Both have the ODBC for SAP Hana client installed, and both have an ODBC DSN configured to connect into the same Hana database. I'm able to use unixODBC isql on either system to connect into the database and run queries.
However, I notice a difference in behavior when I use the -n option in isql. On Red Hat, when I end a line with a semicolon, it executes the statement. On SuSE, a "GO" command is still needed after the semicolon. I'm running the same version of UnixODBC on both systems. Does anyone know why the behavior is different? Is there documentation explaining this difference somewhere?
Red Hat test:
SuSE test:
I'm still looking for a response to this one. I asked the same question in an SAP Hana forum and they directed me to unixODBC for an answer. Does anyone have any ideas?
Hi, Sorry, missed this. I will have to guess. It is clearly to do with how the two distrobutions build their isql, and I suspect it may be related to the use or not of the readline lib. My copy built from source will take the prescense of ";"in the last char of the line as the direction to execute the staement. So, with that in mind, I think the SuSE version is possibly returning a space after the ";" so it requires a explicit "go" to execute. But assuming they both used the same code it has to be down to how they built their versions.
Thanks very much, I rebuilt isql keeping the readline lib in mind. It seems to be working as expected now.