if (stmt)
{
- SC_set_error(stmt, STMT_NOT_IMPLEMENTED_ERROR, "Unknown statement option (Set)", NULL);
+ SC_set_error(stmt, STMT_NOT_IMPLEMENTED_ERROR, "Unknown statement option (Set)", func);
sprintf(option, "fOption=%d, vParam=" FORMAT_ULEN, fOption, vParam);
SC_log_error(func, option, stmt);
}
{
char option[64];
- SC_set_error(stmt, STMT_NOT_IMPLEMENTED_ERROR, "Unknown statement option (Get)", NULL);
+ SC_set_error(stmt, STMT_NOT_IMPLEMENTED_ERROR, "Unknown statement option (Get)", func);
sprintf(option, "fOption=%d", fOption);
SC_log_error(func, option, stmt);
return SQL_ERROR;
res = SC_get_Curres(stmt);
if (icol >= QR_NumPublicResultCols(res))
{
- SC_set_error(stmt, STMT_INVALID_COLUMN_NUMBER_ERROR, "Invalid column number in DescribeCol.", NULL);
+ SC_set_error(stmt, STMT_INVALID_COLUMN_NUMBER_ERROR, "Invalid column number in DescribeCol.", func);
snprintf(buf, sizeof(buf), "Col#=%d, #Cols=%d,%d keys=%d", icol, QR_NumResultCols(res), QR_NumPublicResultCols(res), res->num_key_fields);
SC_log_error(func, buf, stmt);
result = SQL_ERROR;
switch (QR_get_rstatus(res))
{
case PORES_NO_MEMORY_ERROR:
- SC_set_error(self, STMT_NO_MEMORY_ERROR, NULL, __FUNCTION__);
+ SC_set_error(self, STMT_NO_MEMORY_ERROR, "memory allocation error???", __FUNCTION__);
break;
case PORES_BAD_RESPONSE:
SC_set_error(self, STMT_COMMUNICATION_ERROR, "communication error occured", __FUNCTION__);