server-backend icon indicating copy to clipboard operation
server-backend copied to clipboard

[18.0] [MIG] base_external_dbsource_mssql

Open Nikul-OSI opened this issue 1 month ago • 7 comments

Nikul-OSI avatar Nov 03 '25 10:11 Nikul-OSI

/ocabot migration base_external_dbsource_mssql

max3903 avatar Nov 08 '25 22:11 max3903

@Nikul-OSI tests are failing

dreispt avatar Nov 10 '25 18:11 dreispt

@Nikul-OSI tests are failing

@dreispt It's not related to our code; it failed because the library didn't load properly.

ImportError: libodbc.so.2: cannot open shared object file: No such file or directory

Nikul-OSI avatar Nov 11 '25 04:11 Nikul-OSI

@max3903 @dreispt Tests and pre-commit now :green_heart:

Nikul-OSI avatar Nov 11 '25 06:11 Nikul-OSI

Please solve conflicts.

pedrobaeza avatar Nov 13 '25 11:11 pedrobaeza

Please solve conflicts.

Done @pedrobaeza

Nikul-OSI avatar Nov 13 '25 12:11 Nikul-OSI

I'm not entirely convinced about the approach taken for the MSSQL ODBC implementation. As it stands, the open, close, and execute methods are identical for both types, and the shared logic is relying on the connector field for filtering.

In my opinion, it would be cleaner to introduce a new field, mssql_type (defaulting to alchemy), in base.external.dbsource, and then use that field for filtering in the _execute_mssql method. This way, the rest of the logic can remain unchanged. @Nikul-OSI @max3903 WDYT

Superseded by #392

pedrobaeza avatar Nov 25 '25 18:11 pedrobaeza