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
231ec666
Commit
231ec666
authored
Jun 06, 2004
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More comments in prepared statements code.
parent
21783e85
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
160 additions
and
79 deletions
+160
-79
libmysql/libmysql.c
libmysql/libmysql.c
+153
-78
sql/sql_prepare.cc
sql/sql_prepare.cc
+7
-1
No files found.
libmysql/libmysql.c
View file @
231ec666
This diff is collapsed.
Click to expand it.
sql/sql_prepare.cc
View file @
231ec666
...
@@ -210,7 +210,13 @@ static ulong get_param_length(uchar **packet, ulong len)
...
@@ -210,7 +210,13 @@ static ulong get_param_length(uchar **packet, ulong len)
if
(
len
<
5
)
if
(
len
<
5
)
return
0
;
return
0
;
(
*
packet
)
+=
9
;
// Must be 254 when here
(
*
packet
)
+=
9
;
// Must be 254 when here
/* TODO: why uint4korr here? (should be uint8korr) */
/*
In our client-server protocol all numbers bigger than 2^24
stored as 8 bytes with uint8korr. Here we always know that
parameter length is less than 2^4 so don't look at the second
4 bytes. But still we need to obey the protocol hence 9 in the
assignment above.
*/
return
(
ulong
)
uint4korr
(
pos
+
1
);
return
(
ulong
)
uint4korr
(
pos
+
1
);
}
}
#else
#else
...
...
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