Skip to content

[C-API] duckdb_result_return_type definition #13872

@suketa

Description

@suketa

What happens?

duckdb_result_return_type C-API is defined as deprected C-API in the future in duckdb.h after #12682 merged.
Is this intended change?

To Reproduce

#define DUCKDB_API_NO_DEPRECATED 1
#include <duckdb.h>

int main() {
    duckdb_result res;
    duckdb_result_return_type(res);
    return 0;
}

I got the following error when compiling the above code.

$ clang -Iwork/duckdb/src/include/ a.c
a.c:6:5: error: call to undeclared function 'duckdb_result_return_type'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

OS:

MacOS

DuckDB Version:

1.1.0

DuckDB Client:

C

Hardware:

No response

Full Name:

Masaki Suketa

Affiliation:

Ruby Development INC

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a stable release

Did you include all relevant data sets for reproducing the issue?

Not applicable - the reproduction does not require a data set

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?

  • Yes, I have

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions