SQLite Forum

Documentation Error? preupdate_hook

Documentation Error? preupdate_hook

(1) By Keith Medcalf (kmedcalf) on 2020-09-16 18:48:36 [link] [source]


Paragraph 5 reads:

For an UPDATE or DELETE operation on a rowid table, the sixth parameter passed to the preupdate callback is the initial rowid of the row being modified or deleted. For an INSERT operation on a rowid table, or any operation on a WITHOUT ROWID table, the value of the sixth parameter is undefined. For an INSERT or UPDATE on a rowid table the seventh parameter is the final rowid value of the row being inserted or updated. The value of the seventh parameter passed to the callback function is not defined for operations on WITHOUT ROWID tables, or for INSERT operations on rowid tables.

Should not the last INSERT be DELETE?

(2) By Dan Kennedy (dan) on 2020-09-17 21:12:19 in reply to 1 [source]