zxs / tungsten-replicator

Automatically exported from code.google.com/p/tungsten-replicator
0 stars 0 forks source link

MongoDB: Values of almost all types (integer, decimal etc.) are all converted to Strings #1104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In MongoApplier.java, there's this line:
doc.put(name, value.toString())

https://code.google.com/p/tungsten-replicator/source/browse/trunk/replicator/src
/java/com/continuent/tungsten/replicator/applier/MongoApplier.java#338

So values of almost all types are all converted to Strings. For example, 
Integers in MySQL are converted to Strings in MongoDB, thus programs using 
MongoDB must add conversions. This is very tedious.

Please keep the types of the values.

Original issue reported on code.google.com by ngo...@mobilus.co.jp on 10 Mar 2015 at 10:15

GoogleCodeExporter commented 9 years ago
This behavior is by design. 
Users so far have not complained.
You are welcome to write a more versatile applier. 
Please use the mailing list for this kind of discussion, as this is not a bug.

Original comment by g.maxia on 10 Mar 2015 at 11:54