Quantcast
Channel: MySQL Forums - Connector/C++
Browsing all 527 articles
Browse latest View live

Connector c++ 8 converting field Value for DATE to time_t (16 replies)

given a Value v obtained from a Column c, I can get raw bytes representation, I can see that 4 bytes are used when the field is not NULL, but the documentation for Value::getRawBytes() does not...

View Article


Connector c++ 8 obtaining values from bit(1) or bit(n) fields. (no replies)

Selecting BIT(1) or BIT(N) fields from a table yields back a value that can not by printed, it's just a RAW 0 byte buffer, impossible to read. I tried to select CAST( fieldname as char) but that does...

View Article


Xdevapi problem with timestamp (no replies)

hey I'm using xdevapi for c++ and working with rawBtye() of Proto buff is really hard. can we get at least helper class to convert timestamp or any raw byte as std string or something that is...

View Article

SQL via ssh (no replies)

Hi there, how can i create a connection via ssh in c ++ in mysql? It should work like this: mysql -L -u <local database username> -h <database server ip address> -p In any case, I would...

View Article

Unable to compile and run MySQL connector C++ 8.0 on Eclipse Windows - linker...

09:52:18 **** Incremental Build of configuration Debug for project Database **** Info: Internal Builder is used for build g++ -std=c++0x "-ID:\\Downloads\\boost_1_71_0_latest" "-IC:\\Program...

View Article


Need help with Makefile for static c++ connector (no replies)

I've been trying to compile a c++ program that will be run off of shared linux server I have with Bluehost. After a lot of difficulty I finally managed to successfully compile the program in linux...

View Article

mysqlx::Session memory leaks (no replies)

mysqlx::Client ci("mysqlx://user:password\@host:33060/db?ssl-mode=disabled"); mysqlx::Session session(ci); Detected memory leaks! Dumping objects -> {23458} normal block at 0x00B44D98, 504 bytes...

View Article

Connector/C++ APIs document (no replies)

Hi All, I'm using MySQL community version Highly frustrated with the bad documentation that is provided for MySQL community version. I can't understand what drives this outcome Could anyone of you...

View Article


MySql C++ Connector Installation On Fedora 35 (no replies)

Hello I am new to fedora 35 and I am trying to figure out how to install the c++ header files for the mysql-connector-c++. I am a c++ dev but new to fedora. $ sudo yum install mysql-connector-c++ Last...

View Article


MySQL Now Shows its Thread Names at OS Level for Better Troubleshooting (no...

MySQL Now Shows its Thread Names at OS Level for Better Troubleshooting — https://tanelpoder.com/posts/mysql-now-shows-thread-names-at-os-level/

View Article

get date/ datetime from database (no replies)

Hello to all, I try to develop a simple C++ program to get data from a MYSQL database. One of the column has the type date and one the type datetime. My question is now how can I get these types?...

View Article

Umlauts (no replies)

Hello, I want to check in data with umlauts (äüö ...) and display them then in a Visual Studio 2022 app. In a table, then these values should be displayed in a table. But the umlauts are not shown...

View Article

building mysql-connector-c++ using system protobuf (no replies)

Part of the SynoCommunity project, looking into migrating to using mysql-connector-c++ instead of the mysql-connector-c. Part of the issue I'm facing is that it fails at cross-compiling on non x86_64...

View Article


Proper way of using expr in complicated queries (no replies)

Trying to create the following query in Connector/C++ 8 (xDevAPI): SELECT * FROM table WHERE column1 IS NULL OR (column2 is NULL AND DATE_SUB(NOW(), INTERVAL 10 SECOND) > column1); Not sure how to...

View Article

C++ Connector throws 'bad_alloc' when connect gets called (1 reply)

Hello guys! I just started with MySQL and the C++ Connector. After an hour of trying to install it and include it into my project I finally figured it out. But now Ive got a new problem: When I call...

View Article


MySQL 8.0.29: Release Notes (no replies)

MySQL 8.0.29: Release Notes - https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-29.html - https://dev.mysql.com/doc/relnotes/mysql-shell/8.0/en/news-8-0-29.html -...

View Article

Understand how float columns work (no replies)

I'm trying to insert a max float value to a column defined as float and I encountered out of range error. According to documenatation the maximum of float is 3.402823466E+38 but maximum float...

View Article


Using C++ Connector8 with a Dynamic Link Library (msvs19) (no replies)

I am trying to create a Dynamic Link Library (DLL) File with MSVS19 in c++17 code. The API I am creating the dll for is written in stdc++17. I can created a separate project that is a console project,...

View Article

-- Looking for sys/endian.h - not found (no replies)

How do you fix this? Trying to build static library from source with JDBC, I have all the source, and boost, paths to MYSQL is set correctly. Every time I get past one error, another seems to pop up,...

View Article

Link error (no replies)

I am using the C++ connector, version 8.0.23 on Windows 10 Pro, under WSL Ubuntu 20.04.1. When I try to build my application, I get the following link error: /usr/bin/ld:...

View Article
Browsing all 527 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>