diff options
| author | Hiroshi Inoue | 2009-10-25 12:42:43 +0000 |
|---|---|---|
| committer | Hiroshi Inoue | 2009-10-25 12:42:43 +0000 |
| commit | 625a5e64db7177766447dcc207b5c4b8dda904bb (patch) | |
| tree | ea4cdebd92a28131189802fb9f40d686f49a2a81 /statement.h | |
| parent | 2a0b811dba7a85fee5a763c9ca8bb70ba9a45de4 (diff) | |
1. Take WITH cte staments into account.
2. Fix a bug about UTF8 handling.
3. Wait a ReadyForQuery Message after errors correctly.
Diffstat (limited to 'statement.h')
| -rw-r--r-- | statement.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/statement.h b/statement.h index 776cef9..37ade26 100644 --- a/statement.h +++ b/statement.h @@ -105,6 +105,7 @@ enum ,STMT_TYPE_INSERT ,STMT_TYPE_UPDATE ,STMT_TYPE_DELETE + ,STMT_TYPE_WITH ,STMT_TYPE_CREATE ,STMT_TYPE_ALTER ,STMT_TYPE_DROP @@ -426,6 +427,7 @@ enum #define SC_unref_CC_error(a) ((a->ref_CC_error) = FALSE) #define SC_ref_CC_error(a) ((a->ref_CC_error) = TRUE) #define SC_forget_unnamed(a) (PREPARED_TEMPORARILY == (a)->prepared ? SC_set_prepared(a, ONCE_DESCRIBED) : (void) 0) +#define SC_returns_rows(a) (STMT_TYPE_SELECT == (a)->statement_type || STMT_TYPE_WITH == (a)->statement_type) /* For Multi-thread */ |
