Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
53196273
Commit
53196273
authored
Mar 18, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/my/mysql-4.1
parents
2de6b520
75dda825
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
50 deletions
+42
-50
include/m_ctype.h
include/m_ctype.h
+19
-28
include/mysql.h
include/mysql.h
+1
-1
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+1
-1
mysys/charset2html.c
mysys/charset2html.c
+8
-8
regex/regcomp.c
regex/regcomp.c
+12
-12
sql-common/client.c
sql-common/client.c
+1
-0
No files found.
include/m_ctype.h
View file @
53196273
...
@@ -340,23 +340,14 @@ uint my_instr_mb(struct charset_info_st *,
...
@@ -340,23 +340,14 @@ uint my_instr_mb(struct charset_info_st *,
extern
my_bool
my_parse_charset_xml
(
const
char
*
bug
,
uint
len
,
extern
my_bool
my_parse_charset_xml
(
const
char
*
bug
,
uint
len
,
int
(
*
add
)(
CHARSET_INFO
*
cs
));
int
(
*
add
)(
CHARSET_INFO
*
cs
));
#undef _U
#define _MY_U 01
/* Upper case */
#undef _L
#define _MY_L 02
/* Lower case */
#undef _NMR
#define _MY_NMR 04
/* Numeral (digit) */
#undef _SPC
#define _MY_SPC 010
/* Spacing character */
#undef _PNT
#define _MY_PNT 020
/* Punctuation */
#undef _CTR
#define _MY_CTR 040
/* Control character */
#undef _B
#define _MY_B 0100
/* Blank */
#undef _X
#define _MY_X 0200
/* heXadecimal digit */
#define _U 01
/* Upper case */
#define _L 02
/* Lower case */
#define _NMR 04
/* Numeral (digit) */
#define _SPC 010
/* Spacing character */
#define _PNT 020
/* Punctuation */
#define _CTR 040
/* Control character */
#define _B 0100
/* Blank */
#define _X 0200
/* heXadecimal digit */
#define my_isascii(c) (!((c) & ~0177))
#define my_isascii(c) (!((c) & ~0177))
...
@@ -365,17 +356,17 @@ extern my_bool my_parse_charset_xml(const char *bug, uint len,
...
@@ -365,17 +356,17 @@ extern my_bool my_parse_charset_xml(const char *bug, uint len,
#define my_toprint(c) ((c) | 64)
#define my_toprint(c) ((c) | 64)
#define my_toupper(s,c) (char) ((s)->to_upper[(uchar) (c)])
#define my_toupper(s,c) (char) ((s)->to_upper[(uchar) (c)])
#define my_tolower(s,c) (char) ((s)->to_lower[(uchar) (c)])
#define my_tolower(s,c) (char) ((s)->to_lower[(uchar) (c)])
#define my_isalpha(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
U |
_L))
#define my_isalpha(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
MY_U | _MY
_L))
#define my_isupper(s, c) (((s)->ctype+1)[(uchar) (c)] & _U)
#define my_isupper(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
U)
#define my_islower(s, c) (((s)->ctype+1)[(uchar) (c)] & _L)
#define my_islower(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
L)
#define my_isdigit(s, c) (((s)->ctype+1)[(uchar) (c)] & _NMR)
#define my_isdigit(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
NMR)
#define my_isxdigit(s, c) (((s)->ctype+1)[(uchar) (c)] & _X)
#define my_isxdigit(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
X)
#define my_isalnum(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
U | _L |
_NMR))
#define my_isalnum(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
MY_U | _MY_L | _MY
_NMR))
#define my_isspace(s, c) (((s)->ctype+1)[(uchar) (c)] & _SPC)
#define my_isspace(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
SPC)
#define my_ispunct(s, c) (((s)->ctype+1)[(uchar) (c)] & _PNT)
#define my_ispunct(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
PNT)
#define my_isprint(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
PNT | _U | _L | _NMR |
_B))
#define my_isprint(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
MY_PNT | _MY_U | _MY_L | _MY_NMR | _MY
_B))
#define my_isgraph(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
PNT | _U | _L |
_NMR))
#define my_isgraph(s, c) (((s)->ctype+1)[(uchar) (c)] & (_
MY_PNT | _MY_U | _MY_L | _MY
_NMR))
#define my_iscntrl(s, c) (((s)->ctype+1)[(uchar) (c)] & _CTR)
#define my_iscntrl(s, c) (((s)->ctype+1)[(uchar) (c)] & _
MY_
CTR)
/* Some macros that should be cleaned up a little */
/* Some macros that should be cleaned up a little */
#define my_isvar(s,c) (my_isalnum(s,c) || (c) == '_')
#define my_isvar(s,c) (my_isalnum(s,c) || (c) == '_')
...
...
include/mysql.h
View file @
53196273
...
@@ -590,7 +590,7 @@ typedef struct st_mysql_methods
...
@@ -590,7 +590,7 @@ typedef struct st_mysql_methods
int
(
*
unbuffered_fetch
)(
MYSQL
*
mysql
,
char
**
row
);
int
(
*
unbuffered_fetch
)(
MYSQL
*
mysql
,
char
**
row
);
void
(
*
free_embedded_thd
)(
MYSQL
*
mysql
);
void
(
*
free_embedded_thd
)(
MYSQL
*
mysql
);
const
char
*
(
*
read_statistics
)(
MYSQL
*
mysql
);
const
char
*
(
*
read_statistics
)(
MYSQL
*
mysql
);
int
(
*
next_result
)(
MYSQL
*
mysql
);
my_bool
(
*
next_result
)(
MYSQL
*
mysql
);
int
(
*
read_change_user_result
)(
MYSQL
*
mysql
,
char
*
buff
,
const
char
*
passwd
);
int
(
*
read_change_user_result
)(
MYSQL
*
mysql
,
char
*
buff
,
const
char
*
passwd
);
#endif
#endif
}
MYSQL_METHODS
;
}
MYSQL_METHODS
;
...
...
libmysqld/lib_sql.cc
View file @
53196273
...
@@ -246,7 +246,7 @@ static MYSQL_RES * emb_mysql_store_result(MYSQL *mysql)
...
@@ -246,7 +246,7 @@ static MYSQL_RES * emb_mysql_store_result(MYSQL *mysql)
return
mysql_store_result
(
mysql
);
return
mysql_store_result
(
mysql
);
}
}
int
emb_next_result
(
MYSQL
*
mysql
)
my_bool
emb_next_result
(
MYSQL
*
mysql
)
{
{
THD
*
thd
=
(
THD
*
)
mysql
->
thd
;
THD
*
thd
=
(
THD
*
)
mysql
->
thd
;
DBUG_ENTER
(
"emb_next_result"
);
DBUG_ENTER
(
"emb_next_result"
);
...
...
mysys/charset2html.c
View file @
53196273
...
@@ -84,14 +84,14 @@ static void print_cs(CHARSET_INFO *cs)
...
@@ -84,14 +84,14 @@ static void print_cs(CHARSET_INFO *cs)
printf
(
"<TD>%02X"
,
ch
[
i
].
srt
);
printf
(
"<TD>%02X"
,
ch
[
i
].
srt
);
printf
(
"<TD>%s%s%s%s%s%s%s%s"
,
printf
(
"<TD>%s%s%s%s%s%s%s%s"
,
ch
[
i
].
ctp
&
_U
?
"U"
:
""
,
ch
[
i
].
ctp
&
_
MY_
U
?
"U"
:
""
,
ch
[
i
].
ctp
&
_L
?
"L"
:
""
,
ch
[
i
].
ctp
&
_
MY_
L
?
"L"
:
""
,
ch
[
i
].
ctp
&
_NMR
?
"N"
:
""
,
ch
[
i
].
ctp
&
_
MY_
NMR
?
"N"
:
""
,
ch
[
i
].
ctp
&
_SPC
?
"S"
:
""
,
ch
[
i
].
ctp
&
_
MY_
SPC
?
"S"
:
""
,
ch
[
i
].
ctp
&
_PNT
?
"P"
:
""
,
ch
[
i
].
ctp
&
_
MY_
PNT
?
"P"
:
""
,
ch
[
i
].
ctp
&
_CTR
?
"C"
:
""
,
ch
[
i
].
ctp
&
_
MY_
CTR
?
"C"
:
""
,
ch
[
i
].
ctp
&
_B
?
"B"
:
""
,
ch
[
i
].
ctp
&
_
MY_
B
?
"B"
:
""
,
ch
[
i
].
ctp
&
_X
?
"X"
:
""
);
ch
[
i
].
ctp
&
_
MY_
X
?
"X"
:
""
);
printf
(
"<TD>&#%d;"
,
ch
[
i
].
uni
);
printf
(
"<TD>&#%d;"
,
ch
[
i
].
uni
);
printf
(
"<TD>&#%d;"
,
ch
[
i
].
low
);
printf
(
"<TD>&#%d;"
,
ch
[
i
].
low
);
...
...
regex/regcomp.c
View file @
53196273
...
@@ -36,18 +36,18 @@ struct parse {
...
@@ -36,18 +36,18 @@ struct parse {
static
char
nuls
[
10
];
/* place to point scanner in event of error */
static
char
nuls
[
10
];
/* place to point scanner in event of error */
struct
cclass
cclasses
[
CCLASS_LAST
+
1
]
=
{
struct
cclass
cclasses
[
CCLASS_LAST
+
1
]
=
{
{
"alnum"
,
""
,
""
,
_
U
|
_L
|
_NMR
},
{
"alnum"
,
""
,
""
,
_
MY_U
|
_MY_L
|
_MY
_NMR
},
{
"alpha"
,
""
,
""
,
_
U
|
_L
},
{
"alpha"
,
""
,
""
,
_
MY_U
|
_MY
_L
},
{
"blank"
,
""
,
""
,
_B
},
{
"blank"
,
""
,
""
,
_
MY_
B
},
{
"cntrl"
,
""
,
""
,
_CTR
},
{
"cntrl"
,
""
,
""
,
_
MY_
CTR
},
{
"digit"
,
""
,
""
,
_NMR
},
{
"digit"
,
""
,
""
,
_
MY_
NMR
},
{
"graph"
,
""
,
""
,
_
PNT
|
_U
|
_L
|
_NMR
},
{
"graph"
,
""
,
""
,
_
MY_PNT
|
_MY_U
|
_MY_L
|
_MY
_NMR
},
{
"lower"
,
""
,
""
,
_L
},
{
"lower"
,
""
,
""
,
_
MY_
L
},
{
"print"
,
""
,
""
,
_
PNT
|
_U
|
_L
|
_NMR
|
_B
},
{
"print"
,
""
,
""
,
_
MY_PNT
|
_MY_U
|
_MY_L
|
_MY_NMR
|
_MY
_B
},
{
"punct"
,
""
,
""
,
_PNT
},
{
"punct"
,
""
,
""
,
_
MY_
PNT
},
{
"space"
,
""
,
""
,
_SPC
},
{
"space"
,
""
,
""
,
_
MY_
SPC
},
{
"upper"
,
""
,
""
,
_U
},
{
"upper"
,
""
,
""
,
_
MY_
U
},
{
"xdigit"
,
""
,
""
,
_X
},
{
"xdigit"
,
""
,
""
,
_
MY_
X
},
{
NULL
,
NULL
,
NULL
,
0
}
{
NULL
,
NULL
,
NULL
,
0
}
};
};
...
...
sql-common/client.c
View file @
53196273
...
@@ -2233,6 +2233,7 @@ void STDCALL mysql_close(MYSQL *mysql)
...
@@ -2233,6 +2233,7 @@ void STDCALL mysql_close(MYSQL *mysql)
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
static
my_bool
cli_read_query_result
(
MYSQL
*
mysql
)
static
my_bool
cli_read_query_result
(
MYSQL
*
mysql
)
{
{
uchar
*
pos
;
uchar
*
pos
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment