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
1b1a126a
Commit
1b1a126a
authored
Jul 14, 2003
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some mistakes fixed
parent
f80738f2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
21 deletions
+21
-21
libmysql/libmysql.c
libmysql/libmysql.c
+20
-0
libmysqld/Makefile.am
libmysqld/Makefile.am
+1
-0
libmysqld/libmysqld.c
libmysqld/libmysqld.c
+0
-1
sql-common/pack.c
sql-common/pack.c
+0
-18
sql/sql_client.cc
sql/sql_client.cc
+0
-2
No files found.
libmysql/libmysql.c
View file @
1b1a126a
...
@@ -60,6 +60,12 @@
...
@@ -60,6 +60,12 @@
#include <sql_common.h>
#include <sql_common.h>
#include "client_settings.h"
#include "client_settings.h"
ulong
net_buffer_length
=
8192
;
ulong
max_allowed_packet
=
1024L
*
1024L
*
1024L
;
ulong
net_read_timeout
=
NET_READ_TIMEOUT
;
ulong
net_write_timeout
=
NET_WRITE_TIMEOUT
;
#ifdef EMBEDDED_LIBRARY
#ifdef EMBEDDED_LIBRARY
#undef net_flush
#undef net_flush
my_bool
net_flush
(
NET
*
net
);
my_bool
net_flush
(
NET
*
net
);
...
@@ -150,6 +156,7 @@ void STDCALL mysql_server_end()
...
@@ -150,6 +156,7 @@ void STDCALL mysql_server_end()
else
else
mysql_thread_end
();
mysql_thread_end
();
}
}
#endif
/*EMBEDDED_LIBRARY*/
#endif
/*EMBEDDED_LIBRARY*/
my_bool
STDCALL
mysql_thread_init
()
my_bool
STDCALL
mysql_thread_init
()
...
@@ -1225,6 +1232,19 @@ uint STDCALL mysql_thread_safe(void)
...
@@ -1225,6 +1232,19 @@ uint STDCALL mysql_thread_safe(void)
Some support functions
Some support functions
****************************************************************************/
****************************************************************************/
/*
Functions called my my_net_init() to set some application specific variables
*/
void
my_net_local_init
(
NET
*
net
)
{
net
->
max_packet
=
(
uint
)
net_buffer_length
;
net
->
read_timeout
=
(
uint
)
net_read_timeout
;
net
->
write_timeout
=
(
uint
)
net_write_timeout
;
net
->
retry_count
=
1
;
net
->
max_packet_size
=
max
(
net_buffer_length
,
max_allowed_packet
);
}
/*
/*
Add escape characters to a string (blob?) to make it suitable for a insert
Add escape characters to a string (blob?) to make it suitable for a insert
to should at least have place for length*2+1 chars
to should at least have place for length*2+1 chars
...
...
libmysqld/Makefile.am
View file @
1b1a126a
...
@@ -115,6 +115,7 @@ link_sources:
...
@@ -115,6 +115,7 @@ link_sources:
rm
-f
$(srcdir)
/
$$
f
;
\
rm
-f
$(srcdir)
/
$$
f
;
\
@LN_CP_F@
$(srcdir)
/../libmysql/
$$
f
$(srcdir)
/
$$
f
;
\
@LN_CP_F@
$(srcdir)
/../libmysql/
$$
f
$(srcdir)
/
$$
f
;
\
done
;
\
done
;
\
rm
-f
$(srcdir)
/client_settings.h
;
\
@LN_CP_F@
$(srcdir)
/../libmysql/client_settings.h
$(srcdir)
/client_settings.h
;
@LN_CP_F@
$(srcdir)
/../libmysql/client_settings.h
$(srcdir)
/client_settings.h
;
...
...
libmysqld/libmysqld.c
View file @
1b1a126a
...
@@ -46,7 +46,6 @@
...
@@ -46,7 +46,6 @@
#define INADDR_NONE -1
#define INADDR_NONE -1
#endif
#endif
const
char
*
not_error_sqlstate
=
"00000"
;
#define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG | CLIENT_TRANSACTIONS | CLIENT_PROTOCOL_41)
#define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG | CLIENT_TRANSACTIONS | CLIENT_PROTOCOL_41)
#if defined(MSDOS) || defined(__WIN__)
#if defined(MSDOS) || defined(__WIN__)
...
...
sql-common/pack.c
View file @
1b1a126a
...
@@ -18,11 +18,6 @@
...
@@ -18,11 +18,6 @@
#include <mysql_com.h>
#include <mysql_com.h>
#include <mysql.h>
#include <mysql.h>
ulong
net_buffer_length
=
8192
;
ulong
max_allowed_packet
=
1024L
*
1024L
*
1024L
;
ulong
net_read_timeout
=
NET_READ_TIMEOUT
;
ulong
net_write_timeout
=
NET_WRITE_TIMEOUT
;
/* Get the length of next field. Change parameter to point at fieldstart */
/* Get the length of next field. Change parameter to point at fieldstart */
ulong
STDCALL
net_field_length
(
uchar
**
packet
)
ulong
STDCALL
net_field_length
(
uchar
**
packet
)
{
{
...
@@ -83,19 +78,6 @@ my_ulonglong net_field_length_ll(uchar **packet)
...
@@ -83,19 +78,6 @@ my_ulonglong net_field_length_ll(uchar **packet)
#endif
#endif
}
}
/*
Functions called my my_net_init() to set some application specific variables
*/
void
my_net_local_init
(
NET
*
net
)
{
net
->
max_packet
=
(
uint
)
net_buffer_length
;
net
->
read_timeout
=
(
uint
)
net_read_timeout
;
net
->
write_timeout
=
(
uint
)
net_write_timeout
;
net
->
retry_count
=
1
;
net
->
max_packet_size
=
max
(
net_buffer_length
,
max_allowed_packet
);
}
char
*
char
*
net_store_length
(
char
*
pkg
,
ulonglong
length
)
net_store_length
(
char
*
pkg
,
ulonglong
length
)
{
{
...
...
sql/sql_client.cc
View file @
1b1a126a
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#include "mysql_priv.h"
#include "mysql_priv.h"
#ifdef CLEAN_DUP
/*
/*
Function called by my_net_init() to set some check variables
Function called by my_net_init() to set some check variables
*/
*/
...
@@ -38,7 +37,6 @@ void my_net_local_init(NET *net)
...
@@ -38,7 +37,6 @@ void my_net_local_init(NET *net)
#endif
#endif
}
}
}
}
#endif
/*CLEAN_DUP*/
extern
"C"
{
extern
"C"
{
void
mysql_once_init
(
void
)
void
mysql_once_init
(
void
)
...
...
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