Closed petervandivier closed 4 years ago
Possible background context here
Don't use [aclitem], it's slated to disappear soon.
... dated 2000-10-31 ... 🤔
Might explain lack of support in the lib though
This type is not the only one that is not supported by npgsql, check out this FAQ section. The only thing that works is this suggestion:
using (var cmd = new NpgsqlCommand(...)) {
cmd.AllResultTypesAreUnknown = true;
var reader = cmd.ExecuteReader();
// Read everything as strings
}
It requests all the types to be returned as text, and, although it's not optimal, this is the only solution for now. I'm testing a branch that will add a -ReturnAsText switch to handle such situations.
Resolved in #101
Summary
Using
Invoke-DBOQuery
, queries returning non-null data of typeaclitem[]
(for examplepg_database.datacl
) throw an error. This data should be gracefully returnedRepro
Given
Set-DBODefaultSetting -Name rdbms.Type -Value PostgreSQL
,Full Error