Welcome Guest, Not a member yet? Register   Sign In
ODBC and complex joins
#2

[eluser]WanWizard[/eluser]
The column name is used as fieldname in the resultset. If your query contains duplicate column names, only the last one is stored. This is not specific to the ODBC driver, this is how all drivers work.

I think the question should be: why doesn't 'AS' in the select work as intended? Because the result says 'Id', it should have shown 'so_number' and 'circuit_id'. No answer to that I'm afraid. You could dive into the driver, and do a var_dump of the raw result of odbc_result(). Then at least we'll know if it's a CI issue or a PHP / ODBC / Driver / MSSQL issue...


Messages In This Thread
ODBC and complex joins - by El Forum - 10-25-2010, 01:45 PM
ODBC and complex joins - by El Forum - 10-25-2010, 02:10 PM
ODBC and complex joins - by El Forum - 10-25-2010, 02:46 PM
ODBC and complex joins - by El Forum - 10-25-2010, 05:14 PM
ODBC and complex joins - by El Forum - 10-26-2010, 06:16 AM
ODBC and complex joins - by El Forum - 10-26-2010, 08:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB