Skip to content

Commit

Permalink
[MySQL] small fix so we can connecto to the mysql database and execut…
Browse files Browse the repository at this point in the history
…e queries with no return values
  • Loading branch information
Whiteknight committed Apr 14, 2012
1 parent 3b6ebe4 commit e0faff7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mysql/pmc/mysqldbcontext.pmc
Expand Up @@ -36,7 +36,8 @@ pmclass MySQLDbContext dynpmc auto_attrs {
Parrot_free_cstring(cpassword);
if (cdb)
Parrot_free_cstring(cdb);
if (stat)

if (!stat)
Parrot_ex_throw_from_c_args(INTERP, NULL, 0, "MySql Error %u: %s\n", mysql_errno(conn), mysql_error(conn));
}

Expand Down

0 comments on commit e0faff7

Please sign in to comment.