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
31f6b81b
Commit
31f6b81b
authored
Jun 09, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge kishkin.ru:/home/wax/mysql-4.1 into kishkin.ru:/home/wax/mysql-4g
parents
aef0c360
5c2c1318
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
204 additions
and
52 deletions
+204
-52
VC++Files/sql/mysqld.dsp
VC++Files/sql/mysqld.dsp
+4
-0
include/mysql_com.h
include/mysql_com.h
+1
-1
include/thr_alarm.h
include/thr_alarm.h
+1
-1
libmysql/libmysql.c
libmysql/libmysql.c
+7
-3
tests/client_test.c
tests/client_test.c
+191
-47
No files found.
VC++Files/sql/mysqld.dsp
View file @
31f6b81b
...
...
@@ -1137,6 +1137,10 @@ SOURCE=.\sql_show.cpp
# End Source File
# Begin Source File
SOURCE=.\sql_state.c
# End Source File
# Begin Source File
SOURCE=.\sql_string.cpp
!IF "$(CFG)" == "mysqld - Win32 Release"
...
...
include/mysql_com.h
View file @
31f6b81b
...
...
@@ -324,7 +324,7 @@ my_bool check_scramble(const char *, const char *message,
unsigned
long
*
salt
,
my_bool
old_ver
);
char
*
get_tty_password
(
char
*
opt_message
);
void
hash_password
(
unsigned
long
*
result
,
const
char
*
password
);
const
char
*
mysql_errno_to_sqlstate
(
uint
mysql_errno
);
const
char
*
mysql_errno_to_sqlstate
(
u
nsigned
int
mysql_errno
);
/* Some other useful functions */
...
...
include/thr_alarm.h
View file @
31f6b81b
...
...
@@ -100,7 +100,7 @@ typedef struct st_alarm {
#define thr_alarm_init(A) (*(A))=0
#define thr_alarm_in_use(A) (*(A)!= 0)
void
init_thr_alarm
(
uint
max_alarm
);
my_
bool
thr_alarm
(
thr_alarm_t
*
alarmed
,
uint
sec
,
ALARM
*
buff
);
bool
thr_alarm
(
thr_alarm_t
*
alarmed
,
uint
sec
,
ALARM
*
buff
);
void
thr_alarm_kill
(
pthread_t
thread_id
);
void
thr_end_alarm
(
thr_alarm_t
*
alarmed
);
void
end_thr_alarm
(
my_bool
free_structures
);
...
...
libmysql/libmysql.c
View file @
31f6b81b
...
...
@@ -990,7 +990,7 @@ mysql_list_fields(MYSQL *mysql, const char *table, const char *wild)
end
=
strmake
(
strmake
(
buff
,
table
,
128
)
+
1
,
wild
?
wild
:
""
,
128
);
if
(
simple_command
(
mysql
,
COM_FIELD_LIST
,
buff
,(
ulong
)
(
end
-
buff
),
1
)
||
!
(
query
=
read_rows
(
mysql
,(
MYSQL_FIELD
*
)
0
,
protocol_41
(
mysql
)
?
7
:
6
)))
protocol_41
(
mysql
)
?
8
:
6
)))
DBUG_RETURN
(
NULL
);
free_old_query
(
mysql
);
...
...
@@ -1027,7 +1027,7 @@ mysql_list_processes(MYSQL *mysql)
pos
=
(
uchar
*
)
mysql
->
net
.
read_pos
;
field_count
=
(
uint
)
net_field_length
(
&
pos
);
if
(
!
(
fields
=
read_rows
(
mysql
,(
MYSQL_FIELD
*
)
0
,
protocol_41
(
mysql
)
?
6
:
5
)))
protocol_41
(
mysql
)
?
7
:
5
)))
DBUG_RETURN
(
NULL
);
if
(
!
(
mysql
->
fields
=
unpack_fields
(
fields
,
&
mysql
->
field_alloc
,
field_count
,
0
,
mysql
->
server_capabilities
)))
...
...
@@ -3055,7 +3055,8 @@ int STDCALL mysql_fetch_column(MYSQL_STMT *stmt, MYSQL_BIND *bind,
#ifdef CHECK_EXTRA_ARGUMENTS
if
(
!
bind
||
icol
>=
stmt
->
field_count
)
{
DBUG_PRINT
(
"error"
,(
"Invalid column position"
));
set_stmt_errmsg
(
stmt
,
"Invalid column descriptor or offset"
,
1
,
unknown_sqlstate
);
DBUG_RETURN
(
1
);
}
#endif
...
...
@@ -3377,6 +3378,9 @@ my_bool STDCALL mysql_stmt_free_result(MYSQL_STMT *stmt)
mysql
->
status
=
MYSQL_STATUS_READY
;
}
mysql_free_result
(
stmt
->
result
);
stmt
->
result
=
0
;
stmt
->
result_buffered
=
0
;
stmt
->
current_row
=
0
;
DBUG_RETURN
(
0
);
}
...
...
tests/client_test.c
View file @
31f6b81b
This diff is collapsed.
Click to expand it.
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