-
Notifications
You must be signed in to change notification settings - Fork 163
fix(go/adbc/pkg): Run make regenerate to keep generated code in sync with templates #3202
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
Conversation
| func FlightSQLDriverInit(version C.int, rawDriver *C.void, err *C.struct_AdbcError) C.AdbcStatusCode { | ||
| // For backwards compatibility | ||
| return AdbcDriverFlightsqlInit(version, rawDriver, err) | ||
| return AdbcDriverFlightSQLInit(version, rawDriver, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zeroshade do I have to update mentions of the AdbcDriverFlightsqlInit string in other drivers?
$ git grep --name-only AdbcDriverFlightsqlInit
c/driver/flightsql/sqlite_flightsql_test.cc
c/include/arrow-adbc/driver/flightsql.h
c/integration/static_test/main.c
csharp/src/Drivers/Interop/FlightSql/FlightSqlDriverLoader.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well... C# interop tests tell me yes :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea, the generation should be fixed so that it doesn't change driver.go to AdbcDriverFlightSQLInit and keeps it as AdbcDriverFlightsqlInit which is what is failing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 3 spellings of SQL:
SQLsqlSql
… generated function" This reverts commit 811763b.
…generated function
| // For backwards compatibility | ||
| return AdbcDriverFlightsqlInit(version, driver, error); | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes to init.go were needed to compensate for this removal of code that was previously manually added to this auto-generated C file.
No description provided.