Announcement

Collapse
No announcement yet.

MariaDB library

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

  • Talos
    replied
    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:	76
Size:	26.0 KB
ID:	2526

    Leave a comment:


  • Jim
    replied
    OnQueryError() event function not working


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

    Leave a comment:


  • Talos
    replied
    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?

    Leave a comment:


  • Jim
    replied
    Thanks

    Who is licensing ? Onset team ?

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

    Leave a comment:


  • Talos
    replied
    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.

    Leave a comment:


  • Jim
    started a topic MariaDB library

    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 ?
Working...
X