Skip to content

Commit

Permalink
odbcBackend: Add functions for del, insert, update
Browse files Browse the repository at this point in the history
- create queries, bind parameters to statements, execute queries
- support for metadata in INSERT and UPDATE not finished yet
  • Loading branch information
flo91 committed Jun 16, 2023
1 parent 907abac commit ececcf6
Show file tree
Hide file tree
Showing 2 changed files with 346 additions and 245 deletions.
5 changes: 5 additions & 0 deletions src/plugins/backend_odbc/backend_odbc_general.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,11 @@ bool bindColumns (SQLHSTMT sqlStmt, struct columnData * buffers, Key * errorKey)

SQLLEN executeQuery (SQLHSTMT stmt, const char * query, Key * errorKey)
{
if (!stmt)
{
ELEKTRA_SET_INTERFACE_ERROR (errorKey, "The provided statement handle must not be null.");
}

SQLRETURN ret = SQLExecDirect (stmt, (SQLCHAR *) query, SQL_NTS);

if (SQL_SUCCEEDED (ret) || ret == SQL_NO_DATA)
Expand Down
Loading

0 comments on commit ececcf6

Please sign in to comment.