Wappler Version : 1.9.9
Operating System : Windows 10
Expected behavior
Identity returned after insert should be something like 123, 13 etc.
Setting boolean type value in insert/updpate query action should treat value as numeric - 0, 1
Actual behavior
Identity returned after insert is 123.0, 13.0 etc.
Setting boolean type value in insert/updpate query action is treated as - '0', '1'
How to reproduce
Open a .NET/IIS project. Create a new insert query for a database in MySQL. Connect with Driver 8.0. Insert boolean value in a table and retrieve its last inserted ID using identity option in server action.
Field type in DB is BIT(1). The value accepted is in the format b'0' or 0 for false (and 1 for true).
Wappler is inserting the value as a string - "0" which fails.
Iâve always had problems with Wappler MS SQL connections and Table queries/inserts/updates.
My projects are Classic ASP with IIS and Connections to SQL Server 2012+.
My tables have IDâs that are INTâs (int, null) and Wappler defines them as double.
@George / @patrick Any update on this? This BIT bug is still present in the latest version of Wappler.
Its been more than 3 months since this bug was reported.
The queries are using ADO parameters, there is no way to change it from â0â to bâ0â. What type is the value used for the bit field, is that a string? Convert it to a number or boolean first, then it should work.
The field doesnât, but the input value does. It probably comes from a form which submits all data as strings. In most cases the database is smart enough to do the conversion, but sometimes you have to do it yourself.