question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error strings appear mangled

See original GitHub issue

When trying to send a SQL insert, I’m getting mangled error strings:

One or more errors occurred. (�-��	V)
Unhandled exception. System.AggregateException: One or more errors occurred. (�-��	V)
 ---> DuckDB.NET.Data.DuckDBException (0x00000001): �-��	V
   at DuckDB.NET.Data.DuckDbCommand.ExecuteScalarOrNonQuery()
   at DuckDB.NET.Data.DuckDbCommand.ExecuteNonQuery()

Maybe there’s actually something wrong with my insert statement, so no need to worry about inserts not working, just the text appears wrong (however the same SQL command works fine on sqlite, but then again the SQL syntax is not exactly the same between duckdb and sqlite).

This is with DuckDB.Net 0.4.0 and latest duckdb.so (on Linux).

And I should use this occasion to thank you very much for all your updates & commits.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kmosegaardcommented, Jul 5, 2022

Something is not aligning correctly.

If I change: private string ErrorMessage; to: private IntPtr ErrorMessage; in DuckDBResult.

I get the expected result.

1reaction
Giorgicommented, Jul 6, 2022

@pkese This is now available on NuGet

Read more comments on GitHub >

github_iconTop Results From Across the Web

questions about name mangling in C++
When a global function is overloaded, the generated mangled name for each overloaded version is unique. Name mangling is also applied to ...
Read more >
Mangled error message
My intent in posting the image and the thread was to let MS know one of the error messages from Win 10 was...
Read more >
Name mangling - Wikipedia
In compiler construction, name mangling (also called name decoration) is a technique used to solve various problems caused by the need to resolve...
Read more >
Mangled enDashes and emDashes receivied via API
This error occurs while I am still handling the response as a raw string, with no attempt on my part to enforce any...
Read more >
Bug in Python 3 Name Mangling Mechanism (in Exception ...
Bug report Impossible to get an attribute value by its mangled name with described conditions. Exception has wrong mangled name of private ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found