diff options
author | reggie@fedora.(none) <> | 2005-09-15 14:32:01 -0500 |
---|---|---|
committer | reggie@fedora.(none) <> | 2005-09-15 14:32:01 -0500 |
commit | 66e6453e2a6e32ac00b8300e8c6b76ba628e5e9c (patch) | |
tree | 80680fe7b1fe491576584192c59a10e8b0ef2af2 /sql/ha_federated.cc | |
parent | d8bd92895d2c7273e4bf0aaaf4b90efc42086a6a (diff) | |
download | mariadb-git-66e6453e2a6e32ac00b8300e8c6b76ba628e5e9c.tar.gz |
some last minute Windows compile fixes and makefile corrections
Diffstat (limited to 'sql/ha_federated.cc')
-rw-r--r-- | sql/ha_federated.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sql/ha_federated.cc b/sql/ha_federated.cc index 2590e7881a4..6230fa7bb3c 100644 --- a/sql/ha_federated.cc +++ b/sql/ha_federated.cc @@ -591,9 +591,10 @@ static int parse_url(FEDERATED_SHARE *share, TABLE *table, DBUG_PRINT("info", ("Length %d \n", table->s->connect_string.length)); DBUG_PRINT("info", ("String %.*s \n", table->s->connect_string.length, table->s->connect_string.str)); - share->scheme= my_strdup_with_length(table->s->connect_string.str, - table->s->connect_string.length+1, - MYF(0)); + share->scheme= my_strdup_with_length( + (const byte*)table->s->connect_string.str, + table->s->connect_string.length+1, MYF(0)); + // Add a null for later termination of table name share->scheme[table->s->connect_string.length]= 0; DBUG_PRINT("info",("parse_url alloced share->scheme %lx", share->scheme)); @@ -2626,7 +2627,8 @@ int ha_federated::stash_remote_error() { DBUG_ENTER("ha_federated::stash_remote_error()"); remote_error_number= mysql_errno(mysql); - snprintf(remote_error_buf, FEDERATED_QUERY_BUFFER_SIZE, mysql_error(mysql)); + my_snprintf(remote_error_buf, FEDERATED_QUERY_BUFFER_SIZE, + mysql_error(mysql)); DBUG_RETURN(HA_FEDERATED_ERROR_WITH_REMOTE_SYSTEM); } |