[ODBC-398] Classic asp SUM() retrieve wrong data type Created: 2023-10-14 Updated: 2023-10-14 |
|
| Status: | Open |
| Project: | MariaDB Connector/ODBC |
| Component/s: | General |
| Affects Version/s: | 3.1.19 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Simone Abello | Assignee: | Lawrin Novitsky |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
windows 10, IIS 10, classic asp |
||
| Description |
|
in the following example the sum field get a wrong data type and script go in error <% ;port=3306;SERVER=127.0.0.1;UID=user;PWD=pwd;database=unit_test;charset=UTF8" set RS = server.CreateObject("ADODB.Recordset") Response.Write "work: "& RS("number") &"<br>" sum_number = RS("total") + 1 '<------ ERROR HERE RS.close conn.close %> can be avoided using Cint(RS("total")) the table structure is /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; – Dump della struttura di tabella unit_test.testnumeric – Dump dei dati della tabella unit_test.testnumeric: ~6 rows (circa) /*!40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */; |