Merge lp:~brianaker/libdrizzle/cleanup-api into lp:libdrizzle
- cleanup-api
- Merge into libdrizzle-redux
Proposed by
Brian Aker
Status: | Merged |
---|---|
Approved by: | Andrew Hutchings |
Approved revision: | no longer in the source branch. |
Merged at revision: | 99 |
Proposed branch: | lp:~brianaker/libdrizzle/cleanup-api |
Merge into: | lp:libdrizzle |
Diff against target: |
361 lines (+43/-197) 10 files modified
libdrizzle-5.1/conn.h (+0/-10) libdrizzle-5.1/query.h (+1/-7) libdrizzle/conn.cc (+0/-10) libdrizzle/drizzle_local.h (+5/-0) libdrizzle/query.cc (+25/-5) tests/unit/escape.c (+11/-8) tests/unit/hex.c (+0/-65) tests/unit/include.am (+0/-10) tests/unit/passwd.c (+0/-77) tests/unit/statement_char.c (+1/-5) |
To merge this branch: | bzr merge lp:~brianaker/libdrizzle/cleanup-api |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Drizzle Trunk | Pending | ||
Review via email: mp+145078@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
- 99. By Drizzle Continuous Integration
-
Merge lp:~brianaker/libdrizzle/cleanup-api Build: jenkins-
Libdrizzle- 55
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'libdrizzle-5.1/conn.h' | |||
2 | --- libdrizzle-5.1/conn.h 2013-01-27 00:09:17 +0000 | |||
3 | +++ libdrizzle-5.1/conn.h 2013-01-27 01:59:21 +0000 | |||
4 | @@ -105,16 +105,6 @@ | |||
5 | 105 | const char *drizzle_error(const drizzle_st *con); | 105 | const char *drizzle_error(const drizzle_st *con); |
6 | 106 | 106 | ||
7 | 107 | /** | 107 | /** |
8 | 108 | * Value of errno in the case of a DRIZZLE_RETURN_ERRNO return value. | ||
9 | 109 | * | ||
10 | 110 | * @param[in] con Connection structure previously initialized with | ||
11 | 111 | * drizzle_create(), drizzle_clone(), or related functions. | ||
12 | 112 | * @return An errno value as defined in your system errno.h file. | ||
13 | 113 | */ | ||
14 | 114 | DRIZZLE_API | ||
15 | 115 | int drizzle_errno(const drizzle_st *con); | ||
16 | 116 | |||
17 | 117 | /** | ||
18 | 118 | * Get server defined error code for the last result read. | 108 | * Get server defined error code for the last result read. |
19 | 119 | * | 109 | * |
20 | 120 | * @param[in] con Connection structure previously initialized with | 110 | * @param[in] con Connection structure previously initialized with |
21 | 121 | 111 | ||
22 | === modified file 'libdrizzle-5.1/query.h' | |||
23 | --- libdrizzle-5.1/query.h 2013-01-10 22:14:47 +0000 | |||
24 | +++ libdrizzle-5.1/query.h 2013-01-27 01:59:21 +0000 | |||
25 | @@ -79,13 +79,7 @@ | |||
26 | 79 | */ | 79 | */ |
27 | 80 | 80 | ||
28 | 81 | DRIZZLE_API | 81 | DRIZZLE_API |
36 | 82 | ssize_t drizzle_escape_string(char *to, const size_t max_to_size, const char *from, const size_t from_size); | 82 | ssize_t drizzle_escape_string(drizzle_st *con, char **to, const char *from, const size_t from_size); |
30 | 83 | |||
31 | 84 | DRIZZLE_API | ||
32 | 85 | bool drizzle_hex_string(char *to, const unsigned char *from, const size_t from_size); | ||
33 | 86 | |||
34 | 87 | DRIZZLE_API | ||
35 | 88 | bool drizzle_mysql_password_hash(char *to, const char *from, const size_t from_size); | ||
37 | 89 | 83 | ||
38 | 90 | /** @} */ | 84 | /** @} */ |
39 | 91 | 85 | ||
40 | 92 | 86 | ||
41 | === modified file 'libdrizzle/conn.cc' | |||
42 | --- libdrizzle/conn.cc 2013-01-26 23:31:43 +0000 | |||
43 | +++ libdrizzle/conn.cc 2013-01-27 01:59:21 +0000 | |||
44 | @@ -270,16 +270,6 @@ | |||
45 | 270 | return (const char *)con->last_error; | 270 | return (const char *)con->last_error; |
46 | 271 | } | 271 | } |
47 | 272 | 272 | ||
48 | 273 | int drizzle_errno(const drizzle_st *con) | ||
49 | 274 | { | ||
50 | 275 | if (con == NULL) | ||
51 | 276 | { | ||
52 | 277 | return 0; | ||
53 | 278 | } | ||
54 | 279 | |||
55 | 280 | return con->last_errno; | ||
56 | 281 | } | ||
57 | 282 | |||
58 | 283 | uint16_t drizzle_error_code(const drizzle_st *con) | 273 | uint16_t drizzle_error_code(const drizzle_st *con) |
59 | 284 | { | 274 | { |
60 | 285 | if (con == NULL) | 275 | if (con == NULL) |
61 | 286 | 276 | ||
62 | === modified file 'libdrizzle/drizzle_local.h' | |||
63 | --- libdrizzle/drizzle_local.h 2013-01-26 23:44:28 +0000 | |||
64 | +++ libdrizzle/drizzle_local.h 2013-01-27 01:59:21 +0000 | |||
65 | @@ -115,6 +115,11 @@ | |||
66 | 115 | } | 115 | } |
67 | 116 | } | 116 | } |
68 | 117 | 117 | ||
69 | 118 | bool drizzle_hex_string(char *to, const unsigned char *from, const size_t from_size); | ||
70 | 119 | |||
71 | 120 | bool drizzle_mysql_password_hash(char *to, const char *from, const size_t from_size); | ||
72 | 121 | |||
73 | 122 | |||
74 | 118 | /** | 123 | /** |
75 | 119 | * Log an error message, see drizzle_log() for argument details. | 124 | * Log an error message, see drizzle_log() for argument details. |
76 | 120 | */ | 125 | */ |
77 | 121 | 126 | ||
78 | === modified file 'libdrizzle/query.cc' | |||
79 | --- libdrizzle/query.cc 2013-01-10 22:14:47 +0000 | |||
80 | +++ libdrizzle/query.cc 2013-01-27 01:59:21 +0000 | |||
81 | @@ -56,14 +56,26 @@ | |||
82 | 56 | (unsigned char *)query, size, size, ret_ptr); | 56 | (unsigned char *)query, size, size, ret_ptr); |
83 | 57 | } | 57 | } |
84 | 58 | 58 | ||
86 | 59 | ssize_t drizzle_escape_string(char *to, const size_t max_to_size, const char *from, const size_t from_size) | 59 | ssize_t drizzle_escape_string(drizzle_st *con, char **destination, const char *from, const size_t from_size) |
87 | 60 | { | 60 | { |
88 | 61 | (void)con; | ||
89 | 61 | const char *end; | 62 | const char *end; |
90 | 62 | 63 | ||
95 | 63 | if (to == NULL || max_to_size == 0 || from == NULL || from_size == 0) | 64 | if (from == NULL || from_size == 0) |
96 | 64 | { | 65 | { |
97 | 65 | return -1; | 66 | return -1; |
98 | 66 | } | 67 | } |
99 | 68 | |||
100 | 69 | size_t max_to_size= from_size * 2; | ||
101 | 70 | *destination= (char*) malloc(max_to_size); | ||
102 | 71 | |||
103 | 72 | if (destination == NULL) | ||
104 | 73 | { | ||
105 | 74 | return -1; | ||
106 | 75 | } | ||
107 | 76 | |||
108 | 77 | char *to= *destination; | ||
109 | 78 | |||
110 | 67 | 79 | ||
111 | 68 | ssize_t to_size= 0; | 80 | ssize_t to_size= 0; |
112 | 69 | char newchar; | 81 | char newchar; |
113 | @@ -104,7 +116,11 @@ | |||
114 | 104 | if (newchar != '\0') | 116 | if (newchar != '\0') |
115 | 105 | { | 117 | { |
116 | 106 | if ((size_t)to_size + 2 > max_to_size) | 118 | if ((size_t)to_size + 2 > max_to_size) |
117 | 119 | { | ||
118 | 120 | free(to); | ||
119 | 121 | *destination= NULL; | ||
120 | 107 | return -1; | 122 | return -1; |
121 | 123 | } | ||
122 | 108 | 124 | ||
123 | 109 | *to++= '\\'; | 125 | *to++= '\\'; |
124 | 110 | *to++= newchar; | 126 | *to++= newchar; |
125 | @@ -113,7 +129,11 @@ | |||
126 | 113 | else | 129 | else |
127 | 114 | { | 130 | { |
128 | 115 | if ((size_t)to_size + 1 > max_to_size) | 131 | if ((size_t)to_size + 1 > max_to_size) |
129 | 132 | { | ||
130 | 133 | free(to); | ||
131 | 134 | *destination= NULL; | ||
132 | 116 | return -1; | 135 | return -1; |
133 | 136 | } | ||
134 | 117 | 137 | ||
135 | 118 | *to++= *from; | 138 | *to++= *from; |
136 | 119 | } | 139 | } |
137 | 120 | 140 | ||
138 | === modified file 'tests/unit/escape.c' | |||
139 | --- tests/unit/escape.c 2013-01-12 10:59:06 +0000 | |||
140 | +++ tests/unit/escape.c 2013-01-27 01:59:21 +0000 | |||
141 | @@ -46,19 +46,22 @@ | |||
142 | 46 | int main(int argc, char* argv[]) | 46 | int main(int argc, char* argv[]) |
143 | 47 | { | 47 | { |
144 | 48 | const char* in= "escape \"this\"\n"; | 48 | const char* in= "escape \"this\"\n"; |
145 | 49 | char out[255]; | ||
146 | 50 | int out_len; | ||
147 | 51 | 49 | ||
148 | 52 | (void) argc; | 50 | (void) argc; |
149 | 53 | (void) argv; | 51 | (void) argv; |
150 | 54 | 52 | ||
151 | 55 | // Test for data too long | 53 | // Test for data too long |
158 | 56 | out_len= drizzle_escape_string(out, 2, in, strlen(in)); | 54 | char *out; |
159 | 57 | ASSERT_EQ(out_len, -1); | 55 | uint64_t out_len= drizzle_escape_string(NULL, &out, in, strlen(in)); |
160 | 58 | 56 | ASSERT_EQ_(17, out_len, "drizzle_escape_string(): %u != %u", 17, (unsigned int)(out_len)); | |
161 | 59 | out_len= drizzle_escape_string(out, 255, in, strlen(in)); | 57 | |
162 | 60 | ASSERT_EQ_(out_len, 17, "Bad hex length output %d", out_len); | 58 | free(out); |
163 | 61 | ASSERT_EQ_(strcmp(out, "escape \\\"this\\\"\\n"), 0, "Bad hex data output"); | 59 | |
164 | 60 | out_len= drizzle_escape_string(NULL, &out, in, strlen(in)); | ||
165 | 61 | ASSERT_EQ_(out_len, 17, "Bad hex length output %u", (unsigned int)(out_len)); | ||
166 | 62 | ASSERT_EQ_(0, strcmp(out, "escape \\\"this\\\"\\n"), "Bad hex data output"); | ||
167 | 63 | |||
168 | 64 | free(out); | ||
169 | 62 | 65 | ||
170 | 63 | return EXIT_SUCCESS; | 66 | return EXIT_SUCCESS; |
171 | 64 | } | 67 | } |
172 | 65 | 68 | ||
173 | === removed file 'tests/unit/hex.c' | |||
174 | --- tests/unit/hex.c 2013-01-12 10:59:06 +0000 | |||
175 | +++ tests/unit/hex.c 1970-01-01 00:00:00 +0000 | |||
176 | @@ -1,65 +0,0 @@ | |||
177 | 1 | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: | ||
178 | 2 | * | ||
179 | 3 | * Drizzle Client & Protocol Library | ||
180 | 4 | * | ||
181 | 5 | * Copyright (C) 2012 Drizzle Developer Group | ||
182 | 6 | * All rights reserved. | ||
183 | 7 | * | ||
184 | 8 | * Redistribution and use in source and binary forms, with or without | ||
185 | 9 | * modification, are permitted provided that the following conditions are | ||
186 | 10 | * met: | ||
187 | 11 | * | ||
188 | 12 | * * Redistributions of source code must retain the above copyright | ||
189 | 13 | * notice, this list of conditions and the following disclaimer. | ||
190 | 14 | * | ||
191 | 15 | * * Redistributions in binary form must reproduce the above | ||
192 | 16 | * copyright notice, this list of conditions and the following disclaimer | ||
193 | 17 | * in the documentation and/or other materials provided with the | ||
194 | 18 | * distribution. | ||
195 | 19 | * | ||
196 | 20 | * * The names of its contributors may not be used to endorse or | ||
197 | 21 | * promote products derived from this software without specific prior | ||
198 | 22 | * written permission. | ||
199 | 23 | * | ||
200 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
201 | 25 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
202 | 26 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
203 | 27 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
204 | 28 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
205 | 29 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
206 | 30 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
207 | 31 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
208 | 32 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
209 | 33 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
210 | 34 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
211 | 35 | * | ||
212 | 36 | */ | ||
213 | 37 | |||
214 | 38 | #include <yatl/lite.h> | ||
215 | 39 | |||
216 | 40 | #include <libdrizzle-5.1/libdrizzle.h> | ||
217 | 41 | #include <stdio.h> | ||
218 | 42 | #include <string.h> | ||
219 | 43 | #include <stdlib.h> | ||
220 | 44 | #include <stdint.h> | ||
221 | 45 | |||
222 | 46 | int main(int argc, char* argv[]) | ||
223 | 47 | { | ||
224 | 48 | const unsigned char in[6]= {0x00, 0xFF, 0x7F, 0x80, 0xB9, 0xC0}; | ||
225 | 49 | char out[255]; | ||
226 | 50 | bool result; | ||
227 | 51 | |||
228 | 52 | (void) argc; | ||
229 | 53 | (void) argv; | ||
230 | 54 | |||
231 | 55 | // Test for bad usage | ||
232 | 56 | result= drizzle_hex_string(out, in, 0); | ||
233 | 57 | ASSERT_EQ_(false, result, "Bad usage of drizzle_hex_string()"); | ||
234 | 58 | |||
235 | 59 | result= drizzle_hex_string(out, in, sizeof(in)); | ||
236 | 60 | ASSERT_EQ_(true, result, "Failed to get result"); | ||
237 | 61 | |||
238 | 62 | ASSERT_STREQ_("00FF7F80B9C0", out, "Bad result data from drizzle_hex_string()"); | ||
239 | 63 | |||
240 | 64 | return EXIT_SUCCESS; | ||
241 | 65 | } | ||
242 | 66 | 0 | ||
243 | === modified file 'tests/unit/include.am' | |||
244 | --- tests/unit/include.am 2013-01-26 23:44:28 +0000 | |||
245 | +++ tests/unit/include.am 2013-01-27 01:59:21 +0000 | |||
246 | @@ -82,16 +82,6 @@ | |||
247 | 82 | check_PROGRAMS+= tests/unit/connect_uds | 82 | check_PROGRAMS+= tests/unit/connect_uds |
248 | 83 | noinst_PROGRAMS+= tests/unit/connect_uds | 83 | noinst_PROGRAMS+= tests/unit/connect_uds |
249 | 84 | 84 | ||
250 | 85 | tests_unit_hex_SOURCES= tests/unit/hex.c | ||
251 | 86 | tests_unit_hex_LDADD= libdrizzle/libdrizzle.la | ||
252 | 87 | check_PROGRAMS+= tests/unit/hex | ||
253 | 88 | noinst_PROGRAMS+= tests/unit/hex | ||
254 | 89 | |||
255 | 90 | tests_unit_passwd_SOURCES= tests/unit/passwd.c | ||
256 | 91 | tests_unit_passwd_LDADD= libdrizzle/libdrizzle.la | ||
257 | 92 | check_PROGRAMS+= tests/unit/passwd | ||
258 | 93 | noinst_PROGRAMS+= tests/unit/passwd | ||
259 | 94 | |||
260 | 95 | tests_unit_unbuffered_query_SOURCES= tests/unit/unbuffered_query.c | 85 | tests_unit_unbuffered_query_SOURCES= tests/unit/unbuffered_query.c |
261 | 96 | tests_unit_unbuffered_query_LDADD= libdrizzle/libdrizzle.la | 86 | tests_unit_unbuffered_query_LDADD= libdrizzle/libdrizzle.la |
262 | 97 | check_PROGRAMS+= tests/unit/unbuffered_query | 87 | check_PROGRAMS+= tests/unit/unbuffered_query |
263 | 98 | 88 | ||
264 | === removed file 'tests/unit/passwd.c' | |||
265 | --- tests/unit/passwd.c 2013-01-12 10:59:06 +0000 | |||
266 | +++ tests/unit/passwd.c 1970-01-01 00:00:00 +0000 | |||
267 | @@ -1,77 +0,0 @@ | |||
268 | 1 | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: | ||
269 | 2 | * | ||
270 | 3 | * Drizzle Client & Protocol Library | ||
271 | 4 | * | ||
272 | 5 | * Copyright (C) 2012 Drizzle Developer Group | ||
273 | 6 | * All rights reserved. | ||
274 | 7 | * | ||
275 | 8 | * Redistribution and use in source and binary forms, with or without | ||
276 | 9 | * modification, are permitted provided that the following conditions are | ||
277 | 10 | * met: | ||
278 | 11 | * | ||
279 | 12 | * * Redistributions of source code must retain the above copyright | ||
280 | 13 | * notice, this list of conditions and the following disclaimer. | ||
281 | 14 | * | ||
282 | 15 | * * Redistributions in binary form must reproduce the above | ||
283 | 16 | * copyright notice, this list of conditions and the following disclaimer | ||
284 | 17 | * in the documentation and/or other materials provided with the | ||
285 | 18 | * distribution. | ||
286 | 19 | * | ||
287 | 20 | * * The names of its contributors may not be used to endorse or | ||
288 | 21 | * promote products derived from this software without specific prior | ||
289 | 22 | * written permission. | ||
290 | 23 | * | ||
291 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
292 | 25 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
293 | 26 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
294 | 27 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
295 | 28 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
296 | 29 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
297 | 30 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
298 | 31 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
299 | 32 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
300 | 33 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
301 | 34 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
302 | 35 | * | ||
303 | 36 | */ | ||
304 | 37 | |||
305 | 38 | #include <yatl/lite.h> | ||
306 | 39 | |||
307 | 40 | #include <libdrizzle-5.1/libdrizzle.h> | ||
308 | 41 | #include <stdio.h> | ||
309 | 42 | #include <string.h> | ||
310 | 43 | #include <stdlib.h> | ||
311 | 44 | #include <stdint.h> | ||
312 | 45 | #include <string.h> | ||
313 | 46 | |||
314 | 47 | int main(int argc, char* argv[]) | ||
315 | 48 | { | ||
316 | 49 | const char* in= "a nice passphrase"; | ||
317 | 50 | char out[255]; | ||
318 | 51 | bool result; | ||
319 | 52 | |||
320 | 53 | (void) argc; | ||
321 | 54 | (void) argv; | ||
322 | 55 | |||
323 | 56 | // Test for bad usage | ||
324 | 57 | result= drizzle_mysql_password_hash(out, in, 0); | ||
325 | 58 | if (result) | ||
326 | 59 | { | ||
327 | 60 | printf("Usage test failure\n"); | ||
328 | 61 | return EXIT_FAILURE; | ||
329 | 62 | } | ||
330 | 63 | |||
331 | 64 | result= drizzle_mysql_password_hash(out, in, strlen(in)); | ||
332 | 65 | if (!result) | ||
333 | 66 | { | ||
334 | 67 | printf("Didn't get a result failure\n"); | ||
335 | 68 | return EXIT_FAILURE; | ||
336 | 69 | } | ||
337 | 70 | |||
338 | 71 | if (strcmp(out, "597B78D6E0366308739CEBB0E221B246F117E111") != 0) | ||
339 | 72 | { | ||
340 | 73 | printf("Password output didn't match\n"); | ||
341 | 74 | return EXIT_FAILURE; | ||
342 | 75 | } | ||
343 | 76 | return EXIT_SUCCESS; | ||
344 | 77 | } | ||
345 | 78 | 0 | ||
346 | === modified file 'tests/unit/statement_char.c' | |||
347 | --- tests/unit/statement_char.c 2013-01-12 13:40:18 +0000 | |||
348 | +++ tests/unit/statement_char.c 2013-01-27 01:59:21 +0000 | |||
349 | @@ -139,11 +139,7 @@ | |||
350 | 139 | return EXIT_FAILURE; | 139 | return EXIT_FAILURE; |
351 | 140 | } | 140 | } |
352 | 141 | ret = drizzle_stmt_close(stmt); | 141 | ret = drizzle_stmt_close(stmt); |
358 | 142 | if (ret != DRIZZLE_RETURN_OK) | 142 | ASSERT_EQ_(DRIZZLE_RETURN_OK, ret, "drizzle_stmt_close() %s", drizzle_error(con)); |
354 | 143 | { | ||
355 | 144 | printf("Statement close failure ret: %d, err: %d, msg: %s\n", ret, drizzle_errno(con), drizzle_error(con)); | ||
356 | 145 | return EXIT_FAILURE; | ||
357 | 146 | } | ||
359 | 147 | 143 | ||
360 | 148 | drizzle_query(con, "DROP TABLE libdrizzle.t1", 0, &ret); | 144 | drizzle_query(con, "DROP TABLE libdrizzle.t1", 0, &ret); |
361 | 149 | ASSERT_EQ_(DRIZZLE_RETURN_OK, ret, "DROP TABLE libdrizzle.t1"); | 145 | ASSERT_EQ_(DRIZZLE_RETURN_OK, ret, "DROP TABLE libdrizzle.t1"); |