Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
19f947e8
Commit
19f947e8
authored
25 years ago
by
Byron Nikolaidis
Browse files
Options
Downloads
Patches
Plain Diff
driver v06-40-0007
parent
51f62ea4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/interfaces/odbc/environ.c
+2
-1
2 additions, 1 deletion
src/interfaces/odbc/environ.c
src/interfaces/odbc/statement.c
+1
-1
1 addition, 1 deletion
src/interfaces/odbc/statement.c
src/interfaces/odbc/statement.h
+1
-0
1 addition, 0 deletions
src/interfaces/odbc/statement.h
with
4 additions
and
2 deletions
src/interfaces/odbc/environ.c
+
2
−
1
View file @
19f947e8
...
@@ -111,7 +111,7 @@ int status;
...
@@ -111,7 +111,7 @@ int status;
strcpy
(
szSqlState
,
"00000"
);
strcpy
(
szSqlState
,
"00000"
);
// just information that is returned, no error
// just information that is returned, no error
break
;
break
;
case
STMT_
EXEC
_ERROR
:
case
STMT_
BAD
_ERROR
:
strcpy
(
szSqlState
,
"08S01"
);
strcpy
(
szSqlState
,
"08S01"
);
// communication link failure
// communication link failure
break
;
break
;
...
@@ -195,6 +195,7 @@ int status;
...
@@ -195,6 +195,7 @@ int status;
strcpy
(
szSqlState
,
"S1011"
);
strcpy
(
szSqlState
,
"S1011"
);
break
;
break
;
case
STMT_EXEC_ERROR
:
default:
default:
strcpy
(
szSqlState
,
"S1000"
);
strcpy
(
szSqlState
,
"S1000"
);
// also a general error
// also a general error
...
...
This diff is collapsed.
Click to expand it.
src/interfaces/odbc/statement.c
+
1
−
1
View file @
19f947e8
...
@@ -875,7 +875,7 @@ QueryInfo qi;
...
@@ -875,7 +875,7 @@ QueryInfo qi;
*/
*/
}
}
else
{
else
{
self
->
errornumber
=
STMT_
EXEC
_ERROR
;
self
->
errornumber
=
STMT_
BAD
_ERROR
;
self
->
errormsg
=
"Error while executing the query"
;
self
->
errormsg
=
"Error while executing the query"
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/interfaces/odbc/statement.h
+
1
−
0
View file @
19f947e8
...
@@ -74,6 +74,7 @@ typedef enum {
...
@@ -74,6 +74,7 @@ typedef enum {
#define STMT_VALUE_OUT_OF_RANGE 24
#define STMT_VALUE_OUT_OF_RANGE 24
#define STMT_OPERATION_INVALID 25
#define STMT_OPERATION_INVALID 25
#define STMT_PROGRAM_TYPE_OUT_OF_RANGE 26
#define STMT_PROGRAM_TYPE_OUT_OF_RANGE 26
#define STMT_BAD_ERROR 27
/* statement types */
/* statement types */
enum
{
enum
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment