I'm trying to get Drupal working on IIS/MSSQL; we have an existing site with an application written for that platform that I'd prefer not to port. Here's the status -- ported database.mssql, wrote a database.pearmssql.inc, and it seems mostly good.
If I use a DSN that connects to a mysql database, everything works perfectly. If I connect to the MSSQL database, on my very first request I don't see the "User login:" panel on the left side of the first drupal page. On subsequent requests, I get:
warning: Wrong parameter count for min() in C:\temp\drupal2-4.6.5\includes\menu.inc on line 916.
... and then a Page Not Found error.
I've instrumented the heck out of drupal, and now every database query is output, along with the result, on every page, for both my test mssql and mysql versions, for example:
query: SELECT * FROM variable
No error:3 records
DB_FETCH_OBJECT: [ name => update_start ][ value => s:10:"2005-03-21"; ]
DB_FETCH_OBJECT: [ name => theme_default ][ value => s:10:"bluemarine"; ]
DB_FETCH_OBJECT: [ name => filter_html_1 ][ value => i:1; ]
What's odd is that, for both mssql and mysql, I get the exact same output from the database engine. And yet, the instantiation with the MSSQL DSN gets the errors as listed above, and the MYSQL run works perfectly.
Any thoughts on what I could instrument next to debug this? Any clue what's causing it?