Mailing List Archive

[Bug 66334] New: case sensitive dbType for DB Driver.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66334

Bug ID: 66334
Summary: case sensitive dbType for DB Driver.
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Documentation
Assignee: docs@httpd.apache.org
Reporter: flashang@gmail.com
Target Milestone: ---

URL :
https://httpd.apache.org/docs/2.4/mod/mod_dbd.html

When connect to odbc database, dbType is case sensitive.

Setup ODBC System DSN
(apache x86 in Windows X64 ) :
C:\Windows\SysWOW64>odbcad32.exe

(apache x64 in Windows X64) :
C:\Windows\system32>odbcad32.exe

Test using mod_dbd and mod_lua.

odbc.lua

function handle(r)

local database, err = r:dbacquire("ODBC", "datasource=MYSQL2")
r:puts( 'database ' .. tostring(database) .. ' err : ' .. tostring(err)
..'<br />\n' )
local database, err = r:dbacquire("odbc", "datasource=MYSQL2")
r:puts( 'database ' .. tostring(database) .. ' err : ' .. tostring(err)
..'<br />\n' )

r.status = 200
return apache2.OK
end

output :
database nil err : driver for ODBC is invalid or corrupted
database table: 060DD1C8 err : nil

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org