Arrow

Last insert ID - issue | Peter's Custom Anti-Spam for WordPress | Forum

Back to the custom anti-spam plugin page

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Last insert ID - issue
October 5, 2011
1:15 am
Xiscu
Guest

When the plugin calls $wpdb->get_var('SELECT last_insert_id()'); always gets 0. For this reason the plugin doesn't work properly and causes the indefinitely growing of the table cas_count.
I fix this issue calling instead $wpdb->insert_id;. Could you fix this error in the next version of the plugin?

Thanks.

October 6, 2011
11:37 am
Peter
Admin
Forum Posts: 828
Offline

Thanks for the report. There is no pending release at the moment, but this will be noted for whenever the next one comes out.