dbd/oracle/statement.c

changeset 30
8599f34c139b
parent 27
1d2369ebee21
child 31
999ef93f0dbc
equal deleted inserted replaced
29:9b9d85320bc3 30:8599f34c139b
74 } 74 }
75 75
76 lua_pushboolean(L, ok); 76 lua_pushboolean(L, ok);
77 return 1; 77 return 1;
78 } 78 }
79
80 /*
81 * column_names = statement:columns()
82 */
83 static int statement_rowcount(lua_State *L) {
84 luaL_error(L, DBI_ERR_NOT_IMPLEMENTED, DBD_ORACLE_STATEMENT, "columns");
85
86 return 0;
87 }
88
79 89
80 /* 90 /*
81 * success,err = statement:execute(...) 91 * success,err = statement:execute(...)
82 */ 92 */
83 int statement_execute(lua_State *L) { 93 int statement_execute(lua_State *L) {
450 460
451 int dbd_oracle_statement(lua_State *L) { 461 int dbd_oracle_statement(lua_State *L) {
452 static const luaL_Reg statement_methods[] = { 462 static const luaL_Reg statement_methods[] = {
453 {"affected", statement_affected}, 463 {"affected", statement_affected},
454 {"close", statement_close}, 464 {"close", statement_close},
465 {"columns", statement_columns},
455 {"execute", statement_execute}, 466 {"execute", statement_execute},
456 {"fetch", statement_fetch}, 467 {"fetch", statement_fetch},
457 {"rowcount", statement_rowcount}, 468 {"rowcount", statement_rowcount},
458 {"rows", statement_rows}, 469 {"rows", statement_rows},
459 {NULL, NULL} 470 {NULL, NULL}

mercurial