Author: mysqlpp
Date: Sun Dec 30 09:58:45 2007
New Revision: 2058
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2058&view=rev
Log:
fieldinf example wasn't showing the right SQL data type for the
recently-changed stock.price column, DECIMAL. Fixed by using a
different MySQL type constant. If it breaks C API compatibility
with a version of MySQL still in use, we can do ifdef trickery to
fix it.
Modified:
trunk/Wishlist
trunk/bmark.txt
trunk/lib/type_info.cpp
Modified: trunk/Wishlist
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/Wishlist?rev=2058&r1=2057&r2=2058&view=diff
==============================================================================
--- trunk/Wishlist (original)
+++ trunk/Wishlist Sun Dec 30 09:58:45 2007
@@ -9,12 +9,6 @@
v3.0 Plan
---------
- o fieldinf example showing price column as 'CHAR NOT NULL' instead
- of 'DECIMAL(6,2)'. Problem in type_info table?
-
- o Is const_subscript_container still useful? Should it just be
- folded into Row?
-
o Create examples/vstudio/threads to test new thread-related
features. Only VC++ since every other platform has the
possibility of building without thread support. Then work
Modified: trunk/bmark.txt
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/bmark.txt?rev=2058&r1=2057&r2=2058&view=diff
==============================================================================
--- trunk/bmark.txt (original)
+++ trunk/bmark.txt Sun Dec 30 09:58:45 2007
@@ -152,7 +152,7 @@
item CHAR NOT NULL (25) n/a
num BIGINT NOT NULL (11) n/a
weight DOUBLE NOT NULL (8) n/a
-price CHAR NOT NULL (25) n/a
+price DECIMAL NOT NULL (0) n/a
sdate DATE NOT NULL (15) n/a
description BLOB NULL (49) n/a
Modified: trunk/lib/type_info.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/type_info.cpp?rev=2058&r1=2057&r2=2058&view=diff
==============================================================================
--- trunk/lib/type_info.cpp (original)
+++ trunk/lib/type_info.cpp Sun Dec 30 09:58:45 2007
@@ -57,7 +57,7 @@
// marked as default, the typeid() of each item must be unique.
const mysql_type_info::sql_type_info mysql_type_info::types[] = {
sql_type_info("DECIMAL NOT NULL", typeid(sql_decimal),
- MYSQL_TYPE_DECIMAL),
+ MYSQL_TYPE_NEWDECIMAL),
sql_type_info("TINYINT NOT NULL", typeid(sql_tinyint),
MYSQL_TYPE_TINY, mysql_ti_sql_type_info::tf_default),
sql_type_info("TINYINT UNSIGNED NOT NULL", typeid(sql_tinyint_unsigned),
@@ -114,7 +114,7 @@
MYSQL_TYPE_STRING),
sql_type_info("DECIMAL NULL", typeid(Null<sql_decimal>),
- MYSQL_TYPE_DECIMAL, mysql_ti_sql_type_info::tf_null),
+ MYSQL_TYPE_NEWDECIMAL, mysql_ti_sql_type_info::tf_null),
sql_type_info("TINYINT NULL", typeid(Null<sql_tinyint>),
MYSQL_TYPE_TINY, mysql_ti_sql_type_info::tf_default |
mysql_ti_sql_type_info::tf_null),
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits