Skip to content

EPAS - ECPG fix #6711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ int main(int argc, char *argv[])

EXEC SQL OPEN dynCursor USING DESCRIPTOR params;

displayResultSet(20);
displayResultSet();
}

static void bindParams(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ int main(int argc, char *argv[])

EXEC SQL OPEN dynCursor USING DESCRIPTOR params;

displayResultSet(20);
displayResultSet();
}

static void bindParams(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ int main(int argc, char *argv[])

EXEC SQL OPEN dynCursor USING DESCRIPTOR params;

displayResultSet(20);
displayResultSet();
}

static void bindParams(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ int main(int argc, char *argv[])

EXEC SQL OPEN dynCursor USING DESCRIPTOR params;

displayResultSet(20);
displayResultSet();
}

static void bindParams(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ int main(int argc, char *argv[])

EXEC SQL OPEN dynCursor USING DESCRIPTOR params;

displayResultSet(20);
displayResultSet();
}

static void bindParams(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The EDB Postgres Advanced Server `sqlca` structure contains the following member

`sqlcode` is an integer value. A positive `sqlcode` value indicates that the client application encountered a harmless processing condition. A negative value indicates a warning or error.

If a statement processes without error, `sqlcode` contains a value of `0`. If the client application encounters an error or warning during a statement's execution, `sqlcode` contains the last code returned.
If a statement processes without error, `sqlcode` contains a value of `0`. If the client application encounters an error or warning during a statement's execution, `sqlcode` contains the last code returned. When using `MODE` = `-C PROC`, an INSERT statement that inserts no rows will still return `sqlcode` = `0`, indicating successful execution. This return code reflects that the statement was processed without error, regardless of whether any rows were actually inserted.

The SQL standard defines only a positive value of 100, which indicates that the most recent SQL statement processed returned or affected no rows. Since the SQL standard doesn't define other `sqlcode` values, be aware that the values assigned to each condition can vary from database to database.

Expand Down