Skip to the main content.
Downloads Try Thriftly
Downloads Try Thriftly
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

Convert from Btrieve / P.SQL / Actian transactional engines to Oracle, MS SQL Server, and PostgreSQL

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.

 

Legacy Application Modernization: Key Steps, Benefits & Best Practices

Legacy Application Modernization: Key Steps, Benefits & Best Practices

This blog post was co-authored with Riaz Merchant, President and CEO at Mertech. In the fast-paced software world, 'legacy' often signals a warning.

Read More
Hybrid Cloud Migration: Plan, Process and Advantages

Hybrid Cloud Migration: Plan, Process and Advantages

This post was co-authored with Riaz Merchant, President/CEO at Mertech Data Systems, Inc.

Read More
Financial Benefits of Cloud Migration & Hybrid Cloud Applications

Financial Benefits of Cloud Migration & Hybrid Cloud Applications

Shifting from your traditional legacy systems to the Cloud can be a game changer, as the benefits of cloud migration are numerous. Cloud computing...

Read More