You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
606 B

  1. commit 6df3f672313f8dbca219199c8ec8d20c0247347f
  2. Author: Tomás Guisasola <tomasguisasola@gmail.com>
  3. Date: Mon Jul 31 09:41:49 2017 -0300
  4. Add support for building with MariaDB (thanks to Florian Weimer).
  5. --- a/src/ls_mysql.c
  6. +++ b/src/ls_mysql.c
  7. @@ -602,7 +602,11 @@ LUASQL_API int luaopen_luasql_mysql (lua
  8. luaL_setfuncs(L, driver, 0);
  9. luasql_set_info (L);
  10. lua_pushliteral (L, "_MYSQLVERSION");
  11. +#ifdef MARIADB_CLIENT_VERSION_STR
  12. + lua_pushliteral (L, MARIADB_CLIENT_VERSION_STR);
  13. +#else
  14. lua_pushliteral (L, MYSQL_SERVER_VERSION);
  15. +#endif
  16. lua_settable (L, -3);
  17. return 1;
  18. }