MysqlDependency and UPDATE command
Posted: Thu 22 Sep 2016 15:16
Hello,
I'm testing MysqlDependency class to check if it could be of some use for my company and I am experiencing this situation that I am not able to understand.
I used a very simple table for the first test, with only three columns (the PK column and two varchar fields) and the OnChange event was fired when I performed an INSERT, an UPDATE and a DELETE command, as expected.
Then I tried a different table with one timestamp field with CURRENT_TIMESTAMP as default with timestamp update not enabled.
In this case, the OnChange event was fired when I performed an INSERT and a DELETE command but not when I performed an UPDATE command on the table.
I tried to change the value of every field of the table, event the timestamp field, without seeing the event fired.
Can you help me, please?
Best regards
Giacomo
I'm testing MysqlDependency class to check if it could be of some use for my company and I am experiencing this situation that I am not able to understand.
I used a very simple table for the first test, with only three columns (the PK column and two varchar fields) and the OnChange event was fired when I performed an INSERT, an UPDATE and a DELETE command, as expected.
Then I tried a different table with one timestamp field with CURRENT_TIMESTAMP as default with timestamp update not enabled.
In this case, the OnChange event was fired when I performed an INSERT and a DELETE command but not when I performed an UPDATE command on the table.
I tried to change the value of every field of the table, event the timestamp field, without seeing the event fired.
Can you help me, please?
Best regards
Giacomo