Postgresql-odbc Fix ❲95% Complete❳

 
Thread Tools

Postgresql-odbc Fix ❲95% Complete❳

// Add new parameter handling if (strcasecmp(keyword, "MyNewFeature") == 0) strncpy(ci->my_new_param, value, sizeof(ci->my_new_param) - 1); ci->my_new_feature_enabled = atoi(value);

int cache_prepared_statement(ConnectionInfo_ *ci, const char *name, const char *sql) StatementCacheEntry *entry = malloc(sizeof(StatementCacheEntry)); if (!entry) return -1;

StatementCacheEntry *find_cached_statement(const char *sql) StatementCacheEntry *curr = statement_cache; while (curr) if (strcmp(curr->sql, sql) == 0) curr->last_used = time(NULL); curr->use_count++; return curr; postgresql-odbc

return SQL_SUCCESS; // In performance.c - new file for performance features typedef struct uint64_t query_start_time; uint64_t query_end_time; char last_query[4096]; int slow_query_threshold_ms; PerformanceMetrics; void start_query_trace(StatementInfo_ *stmt, const char *query) if (stmt->perf_metrics) stmt->perf_metrics->query_start_time = get_current_time_ms(); strncpy(stmt->perf_metrics->last_query, query, sizeof(stmt->perf_metrics->last_query) - 1);

QLOG_LOG(LOG_INFO, "SQLMyNewFunction called"); if (!EnvironmentHandle) return SQL_INVALID_HANDLE; "MyNewFeature") == 0) strncpy(ci-&gt

return 0; // In odbcapi.c - implement new ODBC function SQLRETURN SQL_API SQLMyNewFunction( SQLHENV EnvironmentHandle, SQLCHAR *Parameter, SQLSMALLINT ParameterLen)

entry->statement_name = strdup(name); entry->sql = strdup(sql); entry->last_used = time(NULL); entry->use_count = 1; entry->next = statement_cache; my_new_param) - 1)

// In connection.h typedef struct // ... existing fields char my_new_param[256]; // new parameter int my_new_feature_enabled; ConnectionInfo_; // In connection.c - parse connection string static int parse_connection_string(ConnectionInfo_ *ci, const char *conn_str) // ... existing parsing code

 
Thread Tools


separator Similar Threads
Thread Uploader Forum Replies

[REC] Gnesis

psycodelic Custom Blu-Ray & 4K Labels 1

[REC] Gnesis

psycodelic Custom Labels 4

[REC] Genesis

regalblitzkrieg Custom Labels 3

[REC] Genesis

joaoattitude Custom Covers 4

[REC] Genesis

joaoattitude Custom Blu-Ray & 4K Covers 3



All times are GMT +2. The time now is 02:03.
cron image