Announcement

Collapse
No announcement yet.

MariaDB library

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    MariaDB library

    Hi,

    I'm developer and i'm working on an ORM open-source (with MariaDB) for this game server but somes functions like "mariadb_errno" and "mariadb_error" doesn't work.

    Why mariadb library code is not open source ?

    When this bug can be resolved please ?

    #2
    Hi and welcome.
    Do you have some code to share where the specific functions don't work. What do they return in that case?
    It's not open source because of licensing right now.

    Comment


      #3
      Thanks

      Who is licensing ? Onset team ?

      Code:
      mariadb_query(DB, "SELECT * MY_ERROR", function()
      local error = mariadb_errno(DB) print(error)
      if error ~= 0 then
      print("ERROR")
      end
      end)
      mariadb_errno return an empty string for example

      Comment


        #4
        The code can't be licensed as open source right now.

        Oh, I see what you mean. On an error, the callback is not executed because there is no result.
        Would https://dev.playonset.com/wiki/OnQueryError work for you?

        Comment


          #5
          OnQueryError() event function not working


          Even if it would work, it is much less practical than the mariadb_errno() function

          Comment


            #6
            The query callback is there to process a query result. The errno function doesn't work in a threaded callback because it works with the main thread connection. Threaded and pooled queries have their own connection.

            My tests show that OnQueryError works.

            Click image for larger version

Name:	mariadb.PNG
Views:	30
Size:	26.0 KB
ID:	2526

            Comment

            Working...
            X