Hi, With Stewart's help i was able to introduce http_delete into the http_functions. To make it not dependent on CURL, we introduce a function call to lib_curl.
curl= curl_easy_init(); curl_easy_setopt(curl, CURLOPT_URL, url->c_str()); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, http_get_result_cb); curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&result); curl_easy_setopt(curl, CURLOPT_USERAGENT, "drizzle-http-functions/1.0"); >> curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST,"http_delete"); retref= curl_easy_perform(curl); i changed the test cases from --exec curl -X DELETE ' ' to select http_delete(" ") i changed the corresponding output in .result... but i'm not able to get the result passed... drizzletest: At line 58: query 'select http_delete ("http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people&_id=1") --exec curl 'http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people' select http_delete ("http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people&query=%7B%22query%22%3A%7B%22_id%22%3A2%7D%7D") --exec curl 'http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people' select http_delete ("http://localhost:$JSON_SERVER_PORT/json") select http_delete ("http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people") select http_delete ("http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people&query=%7B%22query%22%3A%7B%7D%7D") select http_delete ("http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people&query=%7B%22query%22%3A%7B%22_id%22%3A%22%22%7D%7D") SET GLOBAL json_server_allow_drop_table="ON"' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near ''http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people' select http_' at line 2 The result from queries just before the failure was: < snip > "metadata" : { "dob" : "16-feb-1977", "interest" : "opensource", "nick" : "hingo" } } ], "sqlstate" : "00000" } select http_delete ("http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people&_id=1") --exec curl 'http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people' select http_delete ("http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people&query=%7B%22query%22%3A%7B%22_id%22%3A2%7D%7D") --exec curl 'http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people' select http_delete ("http://localhost:$JSON_SERVER_PORT/json") select http_delete ("http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people") select http_delete ("http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people&query=%7B%22query%22%3A%7B%7D%7D") select http_delete ("http://localhost: $JSON_SERVER_PORT/json?schema=json&table=people&query=%7B%22query%22%3A%7B%22_id%22%3A%22%22%7D%7D") SET GLOBAL json_server_allow_drop_table="ON"; More results from queries before failure can be found in /home/sriganesh/repos/drizzle/drizzle-bug-SRIJIK/tests/var/log/basic.log can anybody help me out...? -- *Regards,* *Sriganesh.N*
_______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : drizzle-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp