Skip to content

Commit

Permalink
Update prefetch_worker.cc
Browse files Browse the repository at this point in the history
Try using SELECT * on update re-writes too...
  • Loading branch information
onethumb committed Sep 18, 2012
1 parent e02cbbd commit 9811912
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions prefetch_worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ static char* convert_to_select(const std::string query, uint *length)
if (boost::regex_search(query, result, update_exp))
{
DBUG_PRINT("Match UPDATE.");
select = "select isnull(coalesce(";
select.append(result.str(2));
select.append(")) from ");
select = "select * from ";
select.append(result.str(1));
if (result.position(3) != -1)
{
Expand Down

0 comments on commit 9811912

Please sign in to comment.