[fdo-commits] r634 - in branches/3.2.x/Providers/GenericRdbms: Nls
Src/MySQL/Driver
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Mon Jan 15 17:55:29 EST 2007
Author: brentrobinson
Date: 2007-01-15 17:55:29 -0500 (Mon, 15 Jan 2007)
New Revision: 634
Modified:
branches/3.2.x/Providers/GenericRdbms/Nls/fdordbmsmsg.mc
branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Driver/nls.c
Log:
Parameterized minimum MySQL versions in error messages.
Modified: branches/3.2.x/Providers/GenericRdbms/Nls/fdordbmsmsg.mc
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Nls/fdordbmsmsg.mc 2007-01-15 20:20:51 UTC (rev 633)
+++ branches/3.2.x/Providers/GenericRdbms/Nls/fdordbmsmsg.mc 2007-01-15 22:55:29 UTC (rev 634)
@@ -1743,12 +1743,12 @@
MessageId=2718
SymbolicName=FDORDBMS_493
Language=English
-MySQL client (libmysql) version %1$d.%2$d.%3$d is too old, FDO requires at least version 5;
+MySQL client (libmysql) version %1$d.%2$d.%3$d is too old, FDO requires at least version %4$ls;
.
MessageId=2719
SymbolicName=FDORDBMS_494
Language=English
-MySQL database version %1$d.%2$d.%3$d is too old, FDO requires at least version 5.0.15;
+MySQL database version %1$d.%2$d.%3$d is too old, FDO requires at least version %4$ls;
.
MessageId=2720
SymbolicName=FDORDBMS_495
Modified: branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Driver/nls.c
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Driver/nls.c 2007-01-15 20:20:51 UTC (rev 633)
+++ branches/3.2.x/Providers/GenericRdbms/Src/MySQL/Driver/nls.c 2007-01-15 22:55:29 UTC (rev 634)
@@ -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