TSQLQuery.Params are not updating at design-time
Original Reporter info from Mantis: ertank
-
Reporter name:
Original Reporter info from Mantis: ertank
- Reporter name:
Description:
Params property is not updated after "Editing window" opened. Added or removed parameters after openning Params details is not displayed correctly.
Added parameters are not displayed at all
Removed parameters keeps on staying in the list as they are still in SQL
Steps to reproduce:
1- Open new project
2- Put TSQLQuery on it.
3- Select SQLQuery1 and switch to Object Inspector. From this point on do not select Form1. SQLQuery1 should be constantly selected.
4- Write following in SQLQuery1.SQL: "select * from abc where id = :id"
5- Select SQLQuery1.Params and you will see "0 - id" which is fine.
6- Change SQLQuery1.SQL to: "select * from abc where id = :id and abc = :abc"
7- Select SQLQuery1.Params and you will see just one parameter in there. However, it should be two.
Now at this point continue as following:
8- Select Form1.
9- Select SQLQuery1
10- Go to Object Inspector. You will see Params as 2 items
11- Select Params and you will still see just one item in the Editing SQLQuery1.Params window.
Additional information:
I did not include any sample project as attachment as reproduction is easy.
Mantis conversion info:
- Mantis ID: 32705
- OS: Raspbian
- OS Build: Stretch
- Build: SVN 56257
- Platform: Raspberry Pi 3
- Version: 1.8RC5
- Monitored by: » ertank (ertank)