[Devel] Re: unixodbc trim padding result

2006-03-20 Thread Alex Gradinar
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

[Devel] unixodbc trim padding result

2006-03-17 Thread Alex Gradinar
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

[Devel] unixodbc reconnect & stored procedures

2006-03-15 Thread Alex Gradinar
*(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

Re: [Devel] unixodbc reconnect

2006-03-14 Thread Alex Gradinar
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

[Devel] unixodbc reconnect

2006-03-14 Thread Alex Gradinar
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

[Devel] unixodbc & stored procedures

2006-02-28 Thread Alex Gradinar
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

[Devel] unixodbc bugs

2006-02-28 Thread Alex Gradinar
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