ValentinFunk / LibK

Library for fast gmod addon development
MIT License
53 stars 21 forks source link

Support tmysql4 #11

Closed ValentinFunk closed 7 years ago

ValentinFunk commented 8 years ago

Need to add support for tmysql4 and mysqloo

NickParks commented 8 years ago

If i'm using the tmysql mysqloo wrapper that was made (link How come it still produces this error?

[ERROR] addons/libk/lua/libk/server/sv_libk_database.lua:113: attempt to index field 'MySQLDB' (a nil value)

  1. Query - addons/libk/lua/libk/server/sv_libk_database.lua:113
    1. DoQuery - addons/libk/lua/libk/server/sv_libk_database.lua:167
    2. s - addons/libk/lua/libk/server/sv_libk_model.lua:145
      1. succ - addons/libk/lua/libk/shared/1_sh_promises.lua:48
      2. Done - addons/libk/lua/libk/shared/1_sh_promises.lua:116
      3. initializeTable - addons/libk/lua/libk/shared/1_sh_promises.lua:107
      4. initModels - addons/libk/lua/libk/server/sv_libk_server.lua:52
        1. v - addons/libk/lua/libk/server/sv_libk_server.lua:69
        2. Call - lua/includes/modules/hook.lua:84
        3. onConnected - addons/libk/lua/libk/server/sv_libk_database.lua:255
        4. connect - lua/includes/modules/mysqloo.lua:55
        5. ConnectToMySQL - addons/libk/lua/libk/server/sv_libk_database.lua:257
        6. getDatabaseConnection - addons/libk/lua/libk/server/sv_libk_database
ValentinFunk commented 7 years ago

@SirNickParks It's because it doesn't support any blocking connections unfortunately.

ValentinFunk commented 7 years ago

Closing this as tmysql is no longer maintained and mysqloov9 is a full recode and the recommended module now.