mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
Merge bk-internal:/home/bk/mysql-5.1-maint
into pilot.blaudden:/home/msvensson/mysql/comp_err_checksum/my51-comp_err_checksum sql/share/errmsg.txt: Auto merged
This commit is contained in:
commit
4f38ad8f5e
3 changed files with 10 additions and 10 deletions
|
@ -16,7 +16,8 @@
|
|||
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/sql
|
||||
LDADD = @CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
|
||||
../dbug/libdbug.a ../strings/libmystrings.a
|
||||
../dbug/libdbug.a ../strings/libmystrings.a \
|
||||
$(ZLIB_LIBS)
|
||||
BUILT_SOURCES= $(top_builddir)/include/mysqld_error.h \
|
||||
$(top_builddir)/include/sql_state.h \
|
||||
$(top_builddir)/include/mysqld_ername.h
|
||||
|
|
|
@ -637,27 +637,26 @@ static char checksum_format_specifier(const char* msg)
|
|||
{
|
||||
char chksum= 0;
|
||||
const char* p= msg;
|
||||
int is_format_specifier= 0;
|
||||
const char* start= 0;
|
||||
int num_format_specifiers= 0;
|
||||
while (*p)
|
||||
{
|
||||
|
||||
if (*p == '%')
|
||||
{
|
||||
is_format_specifier= 1; /* Entering format specifier */
|
||||
start= p+1; /* Entering format specifier */
|
||||
num_format_specifiers++;
|
||||
}
|
||||
|
||||
if (is_format_specifier)
|
||||
else if (start)
|
||||
{
|
||||
chksum^= *p;
|
||||
switch(*p)
|
||||
{
|
||||
case 'd':
|
||||
case 'u':
|
||||
case 'x':
|
||||
case 's':
|
||||
is_format_specifier= 0; /* Not in format specifier anymore */
|
||||
chksum= my_checksum(chksum, start, p-start);
|
||||
start= 0; /* Not in format specifier anymore */
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -668,13 +667,13 @@ static char checksum_format_specifier(const char* msg)
|
|||
p++;
|
||||
}
|
||||
|
||||
if (is_format_specifier)
|
||||
if (start)
|
||||
{
|
||||
/* Still inside a format specifier after end of string */
|
||||
|
||||
fprintf(stderr, "Still inside formatspecifier after end of string"
|
||||
" in'%s'\n", msg);
|
||||
DBUG_ASSERT(is_format_specifier==0);
|
||||
DBUG_ASSERT(start==0);
|
||||
}
|
||||
|
||||
/* Add number of format specifiers to checksum as extra safeguard */
|
||||
|
|
|
@ -1479,7 +1479,7 @@ ER_DUP_KEYNAME 42000 S1009
|
|||
swe "Nyckelnamn '%-.64s' finns flera gånger"
|
||||
ukr "äÕÂÌÀÀÞÅ ¦Í'Ñ ËÌÀÞÁ '%-.64s'"
|
||||
ER_DUP_ENTRY 23000 S1009
|
||||
cze "Zvojen-Bý klíč '%-.64s' (číslo klíče %d)"
|
||||
cze "Zdvojen-Bý klíč '%-.64s' (číslo klíče %d)"
|
||||
dan "Ens værdier '%-.64s' for indeks %d"
|
||||
nla "Dubbele ingang '%-.64s' voor zoeksleutel %d"
|
||||
eng "Duplicate entry '%-.64s' for key %d"
|
||||
|
|
Loading…
Add table
Reference in a new issue