MARK CALLAGHAN wrote:
> I would like to know within ha_myisam::open() that the table to be
> opened is a temp table.
/* you've got a temp table... */
> Code in ha_myisam:open expects the flag
> HA_OPEN_TMP_TABLE to be set in some cases, but it is not set for my
> case. This is true for MySQL 5.0.37 and appears to be true for 5.0.75.
> Why is HA_OPEN_TMP_TABLE not set?
Who knows. The flags passed to the handler functions are fubar and
poorly documented and the openfrm() function is a legacy code burial
ground -- just take a look at open_binary_form() in MySQL 6.0 -- it's
1031 lines of very dense code that's difficult to understand on a good day.