Merge lp:~linuxjedi/drizzle/trunk-bug-729642 into lp:drizzle/7.0

Proposed by Andrew Hutchings
Status: Merged
Approved by: Brian Aker
Approved revision: 2222
Merged at revision: 2225
Proposed branch: lp:~linuxjedi/drizzle/trunk-bug-729642
Merge into: lp:drizzle/7.0
Diff against target: 53 lines (+19/-13)
2 files modified
libdrizzle/constants.h (+14/-13)
libdrizzle/handshake.c (+5/-0)
To merge this branch: bzr merge lp:~linuxjedi/drizzle/trunk-bug-729642
Reviewer Review Type Date Requested Status
Drizzle Developers Pending
Review via email: mp+52333@code.launchpad.net

Description of the change

Add DRIZZLE_CON_MULTI_STATEMENTS to enable DRIZZLE_CAPABILITIES_MULTI_STATEMENTS in libdrizzle

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libdrizzle/constants.h'
2--- libdrizzle/constants.h 2011-02-23 17:21:37 +0000
3+++ libdrizzle/constants.h 2011-03-06 17:19:05 +0000
4@@ -158,19 +158,20 @@
5 */
6 typedef enum
7 {
8- DRIZZLE_CON_NONE= 0,
9- DRIZZLE_CON_ALLOCATED= (1 << 0),
10- DRIZZLE_CON_MYSQL= (1 << 1),
11- DRIZZLE_CON_RAW_PACKET= (1 << 2),
12- DRIZZLE_CON_RAW_SCRAMBLE= (1 << 3),
13- DRIZZLE_CON_READY= (1 << 4),
14- DRIZZLE_CON_NO_RESULT_READ= (1 << 5),
15- DRIZZLE_CON_IO_READY= (1 << 6),
16- DRIZZLE_CON_LISTEN= (1 << 7),
17- DRIZZLE_CON_EXPERIMENTAL= (1 << 8),
18- DRIZZLE_CON_FOUND_ROWS= (1 << 9),
19- DRIZZLE_CON_ADMIN= (1 << 10),
20- DRIZZLE_CON_INTERACTIVE= (1 << 11)
21+ DRIZZLE_CON_NONE= 0,
22+ DRIZZLE_CON_ALLOCATED= (1 << 0),
23+ DRIZZLE_CON_MYSQL= (1 << 1),
24+ DRIZZLE_CON_RAW_PACKET= (1 << 2),
25+ DRIZZLE_CON_RAW_SCRAMBLE= (1 << 3),
26+ DRIZZLE_CON_READY= (1 << 4),
27+ DRIZZLE_CON_NO_RESULT_READ= (1 << 5),
28+ DRIZZLE_CON_IO_READY= (1 << 6),
29+ DRIZZLE_CON_LISTEN= (1 << 7),
30+ DRIZZLE_CON_EXPERIMENTAL= (1 << 8),
31+ DRIZZLE_CON_FOUND_ROWS= (1 << 9),
32+ DRIZZLE_CON_ADMIN= (1 << 10),
33+ DRIZZLE_CON_INTERACTIVE= (1 << 11),
34+ DRIZZLE_CON_MULTI_STATEMENTS= (1 << 12)
35 } drizzle_con_options_t;
36
37 /**
38
39=== modified file 'libdrizzle/handshake.c'
40--- libdrizzle/handshake.c 2011-02-23 17:21:37 +0000
41+++ libdrizzle/handshake.c 2011-03-06 17:19:05 +0000
42@@ -515,6 +515,11 @@
43 capabilities|= DRIZZLE_CAPABILITIES_INTERACTIVE;
44 }
45
46+ if (con->options & DRIZZLE_CON_MULTI_STATEMENTS)
47+ {
48+ capabilities|= DRIZZLE_CAPABILITIES_MULTI_STATEMENTS;
49+ }
50+
51 capabilities&= ~(DRIZZLE_CAPABILITIES_COMPRESS | DRIZZLE_CAPABILITIES_SSL);
52 if (con->db[0] == 0)
53 capabilities&= ~DRIZZLE_CAPABILITIES_CONNECT_WITH_DB;

Subscribers

People subscribed via source and target branches