t take part in comparing.
My patch strip padding spaces from all column type.
It's possible to use ODBC function SQLDescribeCol to find out type of column and
strip pad space only for SQL_CHAR type.
Best regards,
Alex Gradinar
Hello,
I am not sure that we have to integrate this in the data
omain' module and if the string contains spaces the function
is_from_local returns False.
Best regards,
Alex Gradinar
unixodbc-res-trim.patch
Description: Binary data
___
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel
*(sql_buf + off) = '\0';
}
The correct code is
if (_n)
{
ret = snprintf(sql_buf + off, SQL_BUF_LEN - off, " where ");
if (ret < 0 || ret >= (SQL_BUF_LEN - off)) goto error;
off += ret;
ret = print_where(&CON_CONNECT
Hello,
I've made patch... see attachment.
I also modified LOG error for SQLExecDirect.
I've added SQL query to log string.
Best regards,
Alex Gradinar
- Original Message -
From: "Daniel-Constantin Mierla" <[EMAIL PROTECTED]>
To: "Alex Gradinar" &l
OG(L_ERR, "Statement allocation error %d\n",
(int)(long)CON_CONNECTION(_h));
extract_error("SQLAllocStmt", CON_CONNECTION(_h), SQL_HANDLE_DBC);
return ret;
}
}
Best regards,
Alex Gradinar
- Original Message -
From: "Alex Gradinar" <[EMAIL P
Hi guys
Is it possible instead of use insert/delete/update use stored procedures?
Best regards,
Alex Gradinar
___
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel
1. function convert_rows in file res.c
while allocationg memery to columns of row in this code
==
CON_ROW(_h) = (strn*)pkg_malloc((int)columns);
==
allocate only amount of bytes as number of columns,
but we have to allocate number of columns * sizeof struct strn
This is corre