summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2005-11-20 20:47:07 +0200
committerbell@sanja.is.com.ua <>2005-11-20 20:47:07 +0200
commit806f9e24ff1e9409d6b833c4ec1c07d3e45272c3 (patch)
tree178b80a009c667cc88b5c83cbe9636892d375946 /sql/key.cc
parentb13dd4ff72b55b0f015d181d99a48828017f2797 (diff)
downloadmariadb-git-806f9e24ff1e9409d6b833c4ec1c07d3e45272c3.tar.gz
Inefficient usage of String::append() fixed.
Bad examples of usage of a string with its length fixed. The incorrect length in the trigger file configuration descriptor fixed (BUG#14090). A hook for unknown keys added to the parser to support old .TRG files.
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/key.cc b/sql/key.cc
index 4bd71d2fa47..9d86095f33e 100644
--- a/sql/key.cc
+++ b/sql/key.cc
@@ -322,7 +322,7 @@ void key_unpack(String *to,TABLE *table,uint idx)
{
if (table->record[0][key_part->null_offset] & key_part->null_bit)
{
- to->append("NULL", 4);
+ to->append(STRING_WITH_LEN("NULL"));
continue;
}
}
@@ -334,7 +334,7 @@ void key_unpack(String *to,TABLE *table,uint idx)
to->append(tmp);
}
else
- to->append("???", 3);
+ to->append(STRING_WITH_LEN("???"));
}
DBUG_VOID_RETURN;
}