• Alexander Barkov's avatar
    MDEV-32130 Port MySQL test on protocol bug #106352 to MariaDB · 5544ea2e
    Alexander Barkov authored
    Port the test case from MySQL to MariaDB:
    
    MySQL fix Bug#33813951, Change-Id: I2448e3f2f36925fe70d882ae5681a6234f0d5a98.
    
    Function test_simple_temporal() from MySQL ported from C++ to pure C.
    
    This includes one change:
    -  DIE_UNLESS(field->type == MYSQL_TYPE_DATETIME);
    +  DIE_UNLESS(field->type == MYSQL_TYPE_TIMESTAMP);
    
    The bound param of SELECT ? is TIMESTAMP in this code.
    MySQL returns it back as DATETIME. MariaDB preserves TIMESTAMP.
    
    Code packaged for commit by Daniel Black.
    5544ea2e
mysql_client_test.c 587 KB