Re: mysql_stmt_execute() trashing stack
Posted by: John Deal
Date: August 13, 2011 01:25PM

I could still get stack trashing even with re-preparing offending mysql_stmt_execute() statement. Converted the two methods that accessed Subscription table (see below) to use mysql_real_query() instead. This seemed to have fixed the problem with valgrind not reporting any violations.

It is strange this is only happening on one table of a multi-table database. The target table is fairly simple. The definition is below:

create table subscriptions
(
subscriptionID integer unsigned primary key auto_increment,
userID integer unsigned,
workplaceID integer unsigned,
rolesID integer unsigned,
constraint foreign key (userID) references users(userID)
on delete cascade on update cascade,
constraint foreign key (workplaceID) references workplaces(workplaceID)
on delete cascade on update cascade
constraint foreign key (rolesID) references roles(roleID) on delete cascade
on update cascade
)
engine InnoDB;

Does anybody see anything in this table definition that could cause problems with prepared statements?

Thanks!

Options: ReplyQuote


Subject
Views
Written By
Posted
4356
July 26, 2011 11:42AM
1594
August 03, 2011 04:55PM
1749
August 06, 2011 11:29AM
2347
August 07, 2011 12:18PM
1479
August 07, 2011 12:26PM
2218
August 11, 2011 04:11PM
Re: mysql_stmt_execute() trashing stack
2003
August 13, 2011 01:25PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.