85 LUA_PUSH_BOOLEAN, |
85 LUA_PUSH_BOOLEAN, |
86 |
86 |
87 LUA_PUSH_MAX |
87 LUA_PUSH_MAX |
88 } lua_push_type_t; |
88 } lua_push_type_t; |
89 |
89 |
|
90 /* |
|
91 * |
|
92 * Common error strings |
|
93 * defined here for consistency in driver implementations |
|
94 * |
|
95 */ |
|
96 |
|
97 #define DBI_ERR_CONNECTION_FAILED "Failed to connect to database: %s" |
|
98 #define DBI_ERR_DB_UNAVAILABLE "Database not available" |
|
99 #define DBI_ERR_EXECUTE_INVALID "Execute called on a closed or invalid statement" |
|
100 #define DBI_ERR_EXECUTE_FAILED "Execute failed %s" |
|
101 #define DBI_ERR_FETCH_INVALID "Fetch called on a closed or invalid statement" |
|
102 #define DBI_ERR_FETCH_FAILED "Fetch failed %s" |
|
103 #define DBI_ERR_PARAM_MISCOUNT "Statement expected %d parameters but received %d" |
|
104 #define DBI_ERR_BINDING_UNKNOWN "Binding unknown or unsupported type" |
|
105 #define DBI_ERR_BINDING_PARAMS "Error binding statement parameters: %s" |
|
106 #define DBI_ERR_BINDING_EXEC "Error executing statement parameters: %s" |
|
107 #define DBI_ERR_FETCH_NO_EXECUTE "Fetch called before execute" |
|
108 #define DBI_ERR_BINDING_RESULTS "Error binding statement results: %s" |
|
109 #define DBI_ERR_UNKNOWN_PUSH "Unknown push type in result set" |
|
110 #define DBI_ERR_ALLOC_STATEMENT "Error allocating statement handle: %s" |
|
111 #define DBI_ERR_PREP_STATEMENT "Error preparing statement handle: %s" |
|
112 #define DBI_ERR_INVALID_PORT "Invalid port: %d" |
|
113 #define DBI_ERR_ALLOC_RESULT "Error allocating result set: %s" |