Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mysql procedure #1688

Merged
merged 26 commits into from Jun 5, 2018
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9f970aa
Remove useless code.
twose Jun 2, 2018
353fb3a
Add fetch_mode option and format.
twose Jun 2, 2018
def0d15
Add fetchAll method and swoole_mysql_coro_statement_free.
twose Jun 2, 2018
1676c60
Add MySQL fetch mode unit test.
twose Jun 2, 2018
316f5ee
Fix.
twose Jun 2, 2018
6ce4c37
Fix zval free.
twose Jun 3, 2018
b5d502c
Add twice tests and use config constant.
twose Jun 3, 2018
5771403
Add fetch method.
twose Jun 3, 2018
01f7c0f
Add single fetch test.
twose Jun 3, 2018
b67a5c6
Add without fetch test.
twose Jun 3, 2018
a5b9ba0
Add mysql_is_over, fix the fetchAll return value.
twose Jun 4, 2018
87a4938
Now we can recv all the responses data.
twose Jun 4, 2018
c560525
Add MYSQL_RESPONSE_BUFFER to separate client and statement buffer.
twose Jun 4, 2018
297c2f2
separate parse_response to swoole_mysql_coro_parse_response.
twose Jun 4, 2018
7f5e6ff
Fix the offset error.
twose Jun 4, 2018
6034d06
Add nextResult and it works successful!
twose Jun 4, 2018
939a5f2
Fix the is over check bug due to the MySQL protocol problem.
twose Jun 5, 2018
a66bdb0
Some patches to fine down the mysql coro: Always check the package co…
twose Jun 5, 2018
3dbb5ba
Tidy up the code.
twose Jun 5, 2018
b8db6e4
Fix the response type check, clear cache attribute totally.
twose Jun 5, 2018
38a139d
Add unit test: procedure in fetch mode
twose Jun 5, 2018
9031ced
Return false when we are not in fetch mode.
twose Jun 5, 2018
c2f356c
Without MySQL client connection, we can also parse the new response i…
twose Jun 5, 2018
58a4d1d
Support procedure without fetch mode.
twose Jun 5, 2018
13ff4ff
Add procedure unit test (without fetch mode).
twose Jun 5, 2018
cf6f439
It's a unsigned int value.
twose Jun 5, 2018
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+0 −1
Diff settings

Always

Just for now

Fix the offset error.

  • Loading branch information...
twose committed Jun 4, 2018
commit 7f5e6fffd278b0c9df789f07113ea0ac6234dfc6
Copy path View file
@@ -1134,7 +1134,6 @@ static sw_inline int mysql_read_params(mysql_client *client)

if (mysql_read_eof(client, t_buffer, n_buf) == 0)
{
buffer->offset += 9;
return SW_OK;
}
else
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.