Skip to the main content.
Downloads Thriftly Login
Downloads Thriftly Login
Group 762

Migrate and run DataFlex applications with Oracle, MS SQL Server, PostgreSQL, MySQL &  MariaDB.

flex2Crystal

Stuck in Crystal XI?  Upgrade and use the latest versions of Crystal Reports with DataFlex applications. 

BTR2SQL

Seamlessly convert from Btrieve transactional database to PostgreSQL, Oracle, and MS SQL Server.

thriftly-1

Quickly build multi-protocol web services with the same API. Supports JSON-RPC, REST, SOAP,  Thrift, and gRPC.

 Group 671-1

 

Why Mertech?

1 min read

Resolve Invalid Date Errors

The MySQL server sql-mode setting affects the syntax MySQL supports and the data validation checks it performs. When sql-mode is set to STRICT_TRANS_TABLES, a statement is aborted and rolled back if an assigned value cannot be inserted into a transactional table. For a nontransactional table, the statement is aborted and rolled back if the value occurs in a single-row statement or the first row of a multiple-row statement.


By default, MySQL 5.7 is configured to work in strict sql-mode (STRICT_TRANS_TABLES). This mode prohibits the explicit use of a zero date (‘0000-00-00’) in any SQL statements. With strict mode enabled, invalid dates generate an error and no create or alter table statements are processed.


Problem

The Mertech drivers use the zero date as the default  DF_LOW value for the date data type.


Resolution

To resolve this issue, modify the my.ini file to delete the STRICT_TRANS_TABLES setting (shown in red below):

sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"


Note
: The MySQL Configuration Wizard places the
 my.ini  file in the MySQL server installation directory. 

 

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Introduction Many independent software vendors (ISV) and corporate users still rely on applications that use a category of database collective called...

Read More
Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

COBOL applications are the foundation of numerous essential business functions, especially within the banking, insurance, and government sectors....

Read More
Application Modernization 101: Ultimate Guide to Digital Transformation

Application Modernization 101: Ultimate Guide to Digital Transformation

Imagine breaking free from the constraints of old, monolithic systems and embracing the agility and innovation of cloud-based solutions.

Read More