Windows and Linux MatLab/ODBC behaviors differ.

I have a MySQL database residing on a linux system. I analyze the data in the database two ways: MatLab on the linux system and MatLab on a Windows10 machine. In both cases, I'm using the most recent versions of ODBC.
If I have a date-time value in one of my fields that's "00-00-0000 00:00:00" and I try to retrieve the values for this and other records, I get different behavior on the two platforms. On linux, MatLab simply doesn't retrieve anything (my "data_retrieved" array has no entries). On Windows, Matlab fills the data_retrieved with the values that exist in the database.
Any ideas on why the linux side can't get any data when there's one odd value in one field?

1 comentario

Eric Sofen
Eric Sofen el 1 de Jul. de 2022
Hi Mark. It's a small world! I stumbled across your question while looking through recent datetime-related questions and said, "Hey, I know that guy." The Linux behavior you describe does sound suspicious, but I admit I don't know much about our ODBC interface. I've passed along your question to colleagues on the Database Toolbox dev team.

Iniciar sesión para comentar.

Respuestas (0)

Productos

Versión

R2021a

Preguntada:

el 29 de Jun. de 2022

Comentada:

el 1 de Jul. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by