Changes to Interactive SQL behavior were introduced in this release.
Previously, when running Interactive SQL as a console application, the INPUT and READ statements assumed that the file was encoded using the OEM encoding (cp437, for example) in the absence of an explicit ENCODING clause. Similarly, the OUTPUT statement would output the file using the OEM encoding.
Now, when running Interactive SQL as a console application, the INPUT and READ statements assume that the file is encoded using the ANSI encoding (cp1252, for example). Similarly, the OUTPUT statement outputs the file using the ANSI encoding.
dbisql READ ENCODING 'cp437' myfile.sql
Previously, when running Interactive SQL as a console application, results written to and read from the command prompt used the ANSI encoding (cp1252, for example), which could cause extended characters to be displayed incorrectly.
Now, when running Interactive SQL as a console application, results written to and read from the command prompt use the OEM encoding (cp437, for example).
Also, the Edit > Close Results menu item, which is equivalent to executing a CLEAR statement, closes any open results sets and leaves the contents of the SQL Statements pane unchanged.
The Edit > Clear menu item which used to clear the contents of the SQL Statements pane has been removed. As a result, the keyboard shortcut for the Clear menu item, the Esc key, has also been removed. Now by default, pressing the Esc key has no affect.
However, you can set the Esc key to clear the SQL Statements pane and close any opened result sets. Choose Tools > Options > Compatibility and select Pressing The Esc Key Clears SQL Statements And Closes Result Sets.
With the READ keyword | Without the READ keyword |
---|---|
READ file.sql parm1 |
file.sql parm1 |
Previously you could not export data that was stored as a CHAR, LONG VARCHAR, NCHAR, NVARCHAR, or LONG NVARCHAR data types.
Now when you export data that is stored as a CHAR, LONG VARCHAR, NCHAR, NVARCHAR, or LONG NVARCHAR data types from a SQL Anywhere database using the Microsoft Excel ODBC driver, the data is stored as VARCHAR (the closest type supported by the Excel driver).
The Microsoft Excel ODBC driver supports text column widths up to 255 characters.