[fdo-commits] r717 - trunk/Providers/GenericRdbms/Src/MySQL/Driver
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Mon Jan 29 17:58:34 EST 2007
Author: brentrobinson
Date: 2007-01-29 17:58:34 -0500 (Mon, 29 Jan 2007)
New Revision: 717
Modified:
trunk/Providers/GenericRdbms/Src/MySQL/Driver/nls.c
Log:
Ported change 634 from branch 3.2.x
Modified: trunk/Providers/GenericRdbms/Src/MySQL/Driver/nls.c
===================================================================
--- trunk/Providers/GenericRdbms/Src/MySQL/Driver/nls.c 2007-01-29 22:57:58 UTC (rev 716)
+++ trunk/Providers/GenericRdbms/Src/MySQL/Driver/nls.c 2007-01-29 22:58:34 UTC (rev 717)
@@ -32,31 +32,33 @@
return ret;
}
-const wchar_t* mysql_nls_version( int msg_num, char* default_msg, unsigned long mysql_version )
+const wchar_t* mysql_nls_version( int msg_num, char* default_msg, unsigned long mysql_version, FdoString* req_version )
{
// Parse out version components from integer version.
FdoInt32 major = (FdoInt32) (mysql_version / 10000);
FdoInt32 minor1 = (FdoInt32)((mysql_version - (major * 10000 )) / 100 );
FdoInt32 minor2 = (FdoInt32)(mysql_version - (major * 10000 ) - (minor1 * 100));
- return mysql_nls_msg_get( msg_num, default_msg, major, minor1, minor2 );
+ return mysql_nls_msg_get( msg_num, default_msg, major, minor1, minor2, req_version );
}
const wchar_t* mysql_nls_client_version( unsigned long client_version )
{
return mysql_nls_version(
FDORDBMS_493,
- "MySQL client (libmysql) version %1$d.%2$d.%3$d is too old, FDO requires at least version 5; ",
- client_version
+ "MySQL client (libmysql) version %1$d.%2$d.%3$d is too old, FDO requires at least version %4$ls; ",
+ client_version,
+ L"5"
);
}
-const wchar_t* mysql_nls_server_version( unsigned long client_version )
+const wchar_t* mysql_nls_server_version( unsigned long server_version )
{
return mysql_nls_version(
FDORDBMS_494,
- "MySQL database version %1$d.%2$d.%3$d is too old, FDO requires at least version 5.0.15; ",
- client_version
+ "MySQL database version %1$d.%2$d.%3$d is too old, FDO requires at least version %4$ls; ",
+ server_version,
+ L"5.0.22"
);
}
More information about the fdo-commits
mailing list