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

Crystal Reports Patch to Handle NULL Dates

The Mertech Flex2SQL GUI migration tool and Mertech drivers use 01/01/0001 as the default NULL value for DataFlex DF_DATE and DF_DATETIME fields to be consistent with the DataFlex dummy zero date setting.


Note: The MSSQL drivers use 01/01/1753 as the default null value.
Note: The MySQL drivers (Windows versions 12.0.6020.0 and 12.1.6020.0 and SCO version 11.0.5702.1) were modified in March of 2012 to use 00/00/0000 as the default NULL value
.


Problem

Crystal Reports versions 9.0 and above have a lower date bound of 01/01/0100.

Solution

A solution is provided by Crystal Reports and described in ADAPT00175452 Patch ID: 36375929:

Description:

In reports, dates that are based on a DB2 table through ODBC, and have a date field with a value of 01/01/0001 (default value for NULL in DB2), are returned as 1/1/2001 in Crystal Reports 9.0 or higher. In Crystal Reports 8.5, the same report works successfully and its date is returned as 1/1/1.
The cause of the problem is that the date structure in CR 9.0 or higher has a lower bound of January 01, 100 AD. So, 01/01/0001 cannot be recognized as a valid value.

New Behavior:

The year is temporarily increased by the number of years (100 or multiples of 100), and then it is decreased by the same number of years when the date is converted to DateTime. This method corrects the dates.

Known Limitations:

Users must install the latest version of crw32.exe and crqe.dll, and then create a registry key to HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE as follows:

SoftwareCrystal Decisions9.0 or 10.0Crystal ReportsDatabaseNumberOfYearToShift=100 or multiples of 100 as a String value.

The patch does not create the registry key.

 

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