Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b5ee2079
Commit
b5ee2079
authored
Nov 19, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbc32: Implement SQLDataSourcesA() forward.
parent
dc2fe2a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
odbc32.spec
dlls/odbc32/odbc32.spec
+1
-1
proxyodbc.c
dlls/odbc32/proxyodbc.c
+28
-0
No files found.
dlls/odbc32/odbc32.spec
View file @
b5ee2079
...
@@ -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 st
ub SQLDataSourcesA
257 st
dcall 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
...
...
dlls/odbc32/proxyodbc.c
View file @
b5ee2079
...
@@ -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]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment