Commit b5ee2079 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

odbc32: Implement SQLDataSourcesA() forward.

parent dc2fe2a4
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
254 stub SQLTablesA 254 stub SQLTablesA
255 stub SQLBrowseConnectA 255 stub SQLBrowseConnectA
256 stub SQLColumnPrivilegesA 256 stub SQLColumnPrivilegesA
257 stub SQLDataSourcesA 257 stdcall SQLDataSourcesA(long long str long ptr str long ptr)
260 stub SQLForeignKeysA 260 stub SQLForeignKeysA
262 stub SQLNativeSqlA 262 stub SQLNativeSqlA
265 stub SQLPrimaryKeysA 265 stub SQLPrimaryKeysA
......
...@@ -75,6 +75,7 @@ static SQLRETURN (*pSQLConnect)(SQLHDBC,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLIN ...@@ -75,6 +75,7 @@ static SQLRETURN (*pSQLConnect)(SQLHDBC,SQLCHAR*,SQLSMALLINT,SQLCHAR*,SQLSMALLIN
static SQLRETURN (*pSQLConnectW)(SQLHDBC,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT); static SQLRETURN (*pSQLConnectW)(SQLHDBC,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
static SQLRETURN (*pSQLCopyDesc)(SQLHDESC,SQLHDESC); static SQLRETURN (*pSQLCopyDesc)(SQLHDESC,SQLHDESC);
static SQLRETURN (*pSQLDataSources)(SQLHENV,SQLUSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*); static SQLRETURN (*pSQLDataSources)(SQLHENV,SQLUSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*);
static SQLRETURN (*pSQLDataSourcesA)(SQLHENV,SQLUSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*);
static SQLRETURN (*pSQLDataSourcesW)(SQLHENV,SQLUSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*); static SQLRETURN (*pSQLDataSourcesW)(SQLHENV,SQLUSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*);
static SQLRETURN (*pSQLDescribeCol)(SQLHSTMT,SQLUSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLSMALLINT*,SQLUINTEGER*,SQLSMALLINT*,SQLSMALLINT*); static SQLRETURN (*pSQLDescribeCol)(SQLHSTMT,SQLUSMALLINT,SQLCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLSMALLINT*,SQLUINTEGER*,SQLSMALLINT*,SQLSMALLINT*);
static SQLRETURN (*pSQLDescribeColW)(SQLHSTMT,SQLUSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLSMALLINT*,SQLULEN*,SQLSMALLINT*,SQLSMALLINT*); static SQLRETURN (*pSQLDescribeColW)(SQLHSTMT,SQLUSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLSMALLINT*,SQLULEN*,SQLSMALLINT*,SQLSMALLINT*);
...@@ -584,6 +585,7 @@ static BOOL ODBC_LoadDMFunctions(void) ...@@ -584,6 +585,7 @@ static BOOL ODBC_LoadDMFunctions(void)
LOAD_FUNC(SQLConnectW); LOAD_FUNC(SQLConnectW);
LOAD_FUNC(SQLCopyDesc); LOAD_FUNC(SQLCopyDesc);
LOAD_FUNC(SQLDataSources); LOAD_FUNC(SQLDataSources);
LOAD_FUNC(SQLDataSourcesA);
LOAD_FUNC(SQLDataSourcesW); LOAD_FUNC(SQLDataSourcesW);
LOAD_FUNC(SQLDescribeCol); LOAD_FUNC(SQLDescribeCol);
LOAD_FUNC(SQLDescribeColW); LOAD_FUNC(SQLDescribeColW);
...@@ -969,6 +971,32 @@ SQLRETURN WINAPI SQLDataSources(SQLHENV EnvironmentHandle, ...@@ -969,6 +971,32 @@ SQLRETURN WINAPI SQLDataSources(SQLHENV EnvironmentHandle,
return ret; return ret;
} }
SQLRETURN WINAPI SQLDataSourcesA(SQLHENV EnvironmentHandle,
SQLUSMALLINT Direction, SQLCHAR *ServerName,
SQLSMALLINT BufferLength1, SQLSMALLINT *NameLength1,
SQLCHAR *Description, SQLSMALLINT BufferLength2,
SQLSMALLINT *NameLength2)
{
SQLRETURN ret;
TRACE("EnvironmentHandle = %p\n", (void*)EnvironmentHandle);
if (!pSQLDataSourcesA) return SQL_ERROR;
ret = pSQLDataSourcesA(EnvironmentHandle, Direction, ServerName,
BufferLength1, NameLength1, Description, BufferLength2, NameLength2);
if (TRACE_ON(odbc))
{
TRACE("returns: %d \t", ret);
if (NameLength1 && *NameLength1 > 0)
TRACE("DataSource = %s,", ServerName);
if (NameLength2 && *NameLength2 > 0)
TRACE(" Description = %s", Description);
TRACE("\n");
}
return ret;
}
/************************************************************************* /*************************************************************************
* SQLDescribeCol [ODBC32.008] * SQLDescribeCol [ODBC32.008]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment