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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1374a58c
Commit
1374a58c
authored
Jun 19, 2003
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SCRUM
client code added to the embedded library some fixes
parent
ece1a581
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
44 deletions
+5
-44
include/mysql.h
include/mysql.h
+3
-32
libmysqld/embedded_priv.h
libmysqld/embedded_priv.h
+0
-2
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+2
-1
sql-common/client.c
sql-common/client.c
+0
-9
No files found.
include/mysql.h
View file @
1374a58c
...
...
@@ -204,8 +204,6 @@ enum mysql_rpl_type
struct
st_mysql_methods
;
#if !defined(CHECK_EMBEDDED_DIFFERENCES) || !defined(EMBEDDED_LIBRARY)
typedef
struct
st_mysql
{
NET
net
;
/* Communication parameters */
...
...
@@ -250,40 +248,13 @@ typedef struct st_mysql
LIST
*
stmts
;
/* list of all statements */
const
struct
st_mysql_methods
*
methods
;
#if !defined(CHECK_EMBEDDED_DIFFERENCES)
struct
st_mysql_res
*
result
;
void
*
thd
;
unsigned
int
last_errno
;
char
*
last_error
;
char
sqlstate
[
SQLSTATE_LENGTH
+
1
];
/* Used by embedded server */
#endif
}
MYSQL
;
#else
struct
st_mysql_res
;
typedef
struct
st_mysql
{
struct
st_mysql_res
*
result
;
void
*
thd
;
struct
charset_info_st
*
charset
;
unsigned
int
server_language
;
MYSQL_FIELD
*
fields
;
MEM_ROOT
field_alloc
;
my_ulonglong
affected_rows
;
unsigned
int
field_count
;
struct
st_mysql_options
options
;
enum
mysql_status
status
;
my_bool
free_me
;
/* If free in mysql_close */
my_ulonglong
insert_id
;
/* id if insert on table with NEXTNR */
unsigned
int
last_errno
;
char
*
last_error
;
/* Used by embedded server */
char
sqlstate
[
SQLSTATE_LENGTH
+
1
];
/* Used by embedded server */
}
MYSQL
;
#endif
typedef
struct
st_mysql_res
{
my_ulonglong
row_count
;
MYSQL_FIELD
*
fields
;
...
...
@@ -638,9 +609,9 @@ int STDCALL mysql_drop_db(MYSQL *mysql, const char *DB);
They are not for general usage
*/
my_bool
simple_command
(
MYSQL
*
mysql
,
enum
enum_server_command
command
,
const
char
*
arg
,
unsigned
long
length
,
my_bool
skip_check
);
#define simple_command(mysql, command, arg, length, skip_check) \
(*(mysql)->methods->advanced_command)(mysql, command, \
NullS, 0, arg, length, skip_check)
unsigned
long
net_safe_read
(
MYSQL
*
mysql
);
void
mysql_once_init
(
void
);
...
...
libmysqld/embedded_priv.h
View file @
1374a58c
...
...
@@ -26,6 +26,4 @@ C_MODE_START
extern
void
lib_connection_phase
(
NET
*
net
,
int
phase
);
extern
void
init_embedded_mysql
(
MYSQL
*
mysql
,
int
client_flag
,
char
*
db
);
extern
void
*
create_embedded_thd
(
int
client_flag
,
char
*
db
);
extern
my_bool
simple_command
(
MYSQL
*
mysql
,
enum
enum_server_command
command
,
const
char
*
arg
,
ulong
length
,
my_bool
skipp_check
);
C_MODE_END
libmysqld/lib_sql.cc
View file @
1374a58c
...
...
@@ -74,7 +74,8 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
result
=
thd
->
net
.
last_errno
?
-
1
:
0
;
mysql
->
last_error
=
thd
->
net
.
last_error
;
mysql
->
last_errno
=
thd
->
net
.
last_errno
;
mysql
->
net
.
last_errno
=
thd
->
net
.
last_errno
;
mysql
->
warning_count
=
((
THD
*
)
mysql
->
thd
)
->
total_warn_count
;
return
result
;
}
...
...
sql-common/client.c
View file @
1374a58c
...
...
@@ -658,15 +658,6 @@ cli_advanced_command(MYSQL *mysql, enum enum_server_command command,
return
result
;
}
my_bool
simple_command
(
MYSQL
*
mysql
,
enum
enum_server_command
command
,
const
char
*
arg
,
ulong
length
,
my_bool
skip_check
)
{
return
(
*
mysql
->
methods
->
advanced_command
)(
mysql
,
command
,
NullS
,
0
,
arg
,
length
,
skip_check
);
}
void
free_old_query
(
MYSQL
*
mysql
)
{
DBUG_ENTER
(
"free_old_query"
);
...
...
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