Skip to content

Cannot get Mariadb database object #230

Description

@a-l-le

Spell editor version
v2.2.1

Describe the bug
After setting up db connection details the program cannot get a db object

To Reproduce
Choose mysql connection on startup

Expected behavior

Screenshots

Additional context

[17:26:32.3058|INFO|SpellEditor.MainWindow] ######################################################
[17:26:32.3558|INFO|SpellEditor.MainWindow] Starting WoW Spell Editor - 24-Mar-24 5:26:32 PM
[17:26:32.3558|INFO|SpellEditor.MainWindow] ######################################################
[17:26:35.9848|ERROR|SpellEditor.MainWindow] ERROR: Object cannot be cast from DBNull to other types.

System.InvalidCastException: Object cannot be cast from DBNull to other types.
   at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider)
   at MySql.Data.MySqlClient.Driver.LoadCharacterSets(MySqlConnection connection)
   at MySql.Data.MySqlClient.Driver.Configure(MySqlConnection connection)
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at SpellEditor.Sources.Database.MySQL..ctor(Boolean initialiseDatabase)
   at SpellEditor.Sources.Database.AdapterFactory.GetAdapter(Boolean initialiseDatabase)
   at SpellEditor.MainWindow.<>c__DisplayClass44_0.<loadAllData>b__0()

Not a connection/authorization issue as it throws different errors when I try to replicate one. I've tried different versions from 1.0.x to 2.2.1 same result. Haven't tried a mysql server because I don't have one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions