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
254ae896
Commit
254ae896
authored
Aug 13, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbc32: Add SQLGetDiagRecA implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
470ed3c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
odbc32.spec
dlls/odbc32/odbc32.spec
+1
-1
proxyodbc.c
dlls/odbc32/proxyodbc.c
+17
-0
No files found.
dlls/odbc32/odbc32.spec
View file @
254ae896
...
...
@@ -136,7 +136,7 @@
233 stub SQLGetDescFieldA
234 stub SQLGetDescRecA
235 stub SQLGetDiagFieldA
236 st
ub
SQLGetDiagRecA
236 st
dcall SQLGetDiagRecA(long long long ptr ptr ptr long ptr) ODBC32_
SQLGetDiagRecA
238 stub SQLGetStmtAttrA
239 stub SQLSetConnectAttrA
240 stub SQLColumnsA
...
...
dlls/odbc32/proxyodbc.c
View file @
254ae896
...
...
@@ -167,6 +167,8 @@ static SQLRETURN (*pSQLTablePrivilegesW)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR
static
SQLRETURN
(
*
pSQLTables
)(
SQLHSTMT
,
SQLCHAR
*
,
SQLSMALLINT
,
SQLCHAR
*
,
SQLSMALLINT
,
SQLCHAR
*
,
SQLSMALLINT
,
SQLCHAR
*
,
SQLSMALLINT
);
static
SQLRETURN
(
*
pSQLTablesW
)(
SQLHSTMT
,
SQLWCHAR
*
,
SQLSMALLINT
,
SQLWCHAR
*
,
SQLSMALLINT
,
SQLWCHAR
*
,
SQLSMALLINT
,
SQLWCHAR
*
,
SQLSMALLINT
);
static
SQLRETURN
(
*
pSQLTransact
)(
SQLHENV
,
SQLHDBC
,
SQLUSMALLINT
);
static
SQLRETURN
(
*
pSQLGetDiagRecA
)(
SQLSMALLINT
,
SQLHANDLE
,
SQLSMALLINT
,
SQLCHAR
*
,
SQLINTEGER
*
,
SQLCHAR
*
,
SQLSMALLINT
,
SQLSMALLINT
*
);
#define ERROR_FREE 0
#define ERROR_SQLERROR 1
...
...
@@ -617,6 +619,7 @@ static BOOL ODBC_LoadDMFunctions(void)
LOAD_FUNC
(
SQLGetDiagField
);
LOAD_FUNC
(
SQLGetDiagFieldW
);
LOAD_FUNC
(
SQLGetDiagRec
);
LOAD_FUNC
(
SQLGetDiagRecA
);
LOAD_FUNC
(
SQLGetDiagRecW
);
LOAD_FUNC
(
SQLGetEnvAttr
);
LOAD_FUNC
(
SQLGetFunctions
);
...
...
@@ -2728,5 +2731,19 @@ SQLRETURN WINAPI ODBC32_SQLSetStmtAttrW(SQLHSTMT StatementHandle,
return
iResult
;
}
/*************************************************************************
* SQLGetDiagRecA [ODBC32.236]
*/
SQLRETURN
WINAPI
ODBC32_SQLGetDiagRecA
(
SQLSMALLINT
handle_type
,
SQLHANDLE
handle
,
SQLSMALLINT
record
,
SQLCHAR
*
sql_state
,
SQLINTEGER
*
native_error
,
SQLCHAR
*
error_msg
,
SQLSMALLINT
error_msg_max
,
SQLSMALLINT
*
error_msg_size
)
{
TRACE
(
"
\n
"
);
if
(
!
pSQLGetDiagRecA
)
return
SQL_ERROR
;
return
pSQLGetDiagRecA
(
handle_type
,
handle
,
record
,
sql_state
,
native_error
,
error_msg
,
error_msg_max
,
error_msg_size
);
}
/* End of file */
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