Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d08741e commit 5b6acffCopy full SHA for 5b6acff
src/interfaces/odbc/statement.c
@@ -22,8 +22,10 @@
22
#include "qresult.h"
23
#include "convert.h"
24
#include "environ.h"
25
+
26
#include <stdio.h>
27
#include <string.h>
28
+#include <ctype.h>
29
30
#ifndef WIN32
31
#include "iodbc.h"
@@ -353,6 +355,10 @@ statement_type(char *statement)
353
355
{
354
356
int i;
357
358
+ /* ignore leading whitespace in query string */
359
+ while (*statement && isspace((unsigned char) *statement))
360
+ statement++;
361
362
for (i = 0; Statement_Type[i].s; i++)
363
if ( ! strnicmp(statement, Statement_Type[i].s, strlen(Statement_Type[i].s)))
364
return Statement_Type[i].type;
0 commit comments