Questions tagged [mariadb-connector]

MariaDB provides standards-based drivers for JDBC, ODBC, .NET, and Python enabling developers to build database applications in their language of choice. In addition, a native C library allows developers to embed MariaDB directly into their applications.

6 questions
4
votes
4 answers

MySqlConnection.Open() System.InvalidCastException: Object cannot be cast from DBNull to other types

I have simple connectionstring to MySql (MariaDB 5.5.5-10.11.0) written in c#: MySqlConnection Database = new MySqlConnection("Server=127.0.0.1; Port=3306; Database=test; Uid=user; Pwd=MyPassword; Ssl Mode=Required; convert zero…
AdamA
  • 149
  • 1
  • 8
0
votes
0 answers

MariaDB c api bind bit type

I'm using Mariadb C api. Can I have an example of binding BIT type data? I can't find any of such examples on the Internet. Here is part of my code char** test_data = new char*[2]; test_data[0] = new char{'0'}; test_data[1] = new…
popcornhex
  • 21
  • 1
0
votes
2 answers

Using Spring JDBCTemplate with MariaDB Connector

Java web application using Spring. We are currently using MySQL and wish to migrate to MariaDB. So we also planned to migrate from MySQL Connector to MariaDB Client. Our software uses multiple databases on a same server, and some tables can have the…
user327961
  • 2,440
  • 3
  • 22
  • 20
0
votes
1 answer

Python mariadb-connector function returns empty cursor.fetchall() on 252nd iteration with different WHERE clauses

Caveats: Linux Distribution prevents upgrade beyond connector 3.1.20 and thus python module 1.0.11 Versions from /usr/bin/mariadb_config Copyright 2011-2020 MariaDB Corporation AB Get compiler flags for using the MariaDB Connector/C. Usage:…
Joe Greene
  • 61
  • 1
  • 7
0
votes
0 answers

MariaDB Connector/Node.js weird syntax error?

The following function is being called for each POST request to an endpoint: exports.resetall = async (req, res, next) => { let conn; try { conn = await pool.getConnection({multipleStatements: true}); await conn.query(` …
idressos
  • 1
  • 1
0
votes
0 answers

Mariadb Python client/module install on Cygwin

I have Python 3.9 installed on Cygwin on WIndows. I also have XAMPP installed, which provides MariaDB v 10.4.24. I am trying to write Python scripts that read data from this database. I am trying to install the Python MariaDB module…
TenG
  • 3,843
  • 2
  • 25
  • 42