Skip to content

Commit

Permalink
Build fix for MacOSX
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Feb 29, 2016
1 parent ab70a87 commit 7a27c4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/connection/aurora.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ my_bool aurora_parse_url(const char *url, AURORA *aurora)
/* get instances */
while((c))
{
if (p= strchr(c, ','))
if ((p= strchr(c, ',')))
{
*p= '\0';
p++;
Expand Down Expand Up @@ -256,7 +256,7 @@ int aurora_get_instance_type(MYSQL *mysql)
if (!mariadb_api->mysql_query(mysql, query))
{
MYSQL_RES *res= mariadb_api->mysql_store_result(mysql);
rc= mysql_num_rows(res) ? AURORA_PRIMARY : AURORA_REPLICA;
rc= mariadb_api->mysql_num_rows(res) ? AURORA_PRIMARY : AURORA_REPLICA;
mariadb_api->mysql_free_result(res);
}
mysql->net.extension->conn_hdlr= save_hdlr;
Expand Down

0 comments on commit 7a27c4c

Please sign in to comment.