Data type mapping in mysql
Santlal J Gupta <[email protected]> Tue, 10 Jan 2017 06:39:12 +0000
| Newsgroups | gmane.comp.db.mysql.java |
|---|---|
| Message-ID | <[email protected]> |
--_000_c9ab7e4448ec4a6393744334b5fb1c17EXCHSRV2bitwiseglobalne_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I am new to Mysql datatype.I have created table with FLOAT data type. I saw in MysqlDefs class that Float is map to FIELD_TYPE_FLOAT in " mysqlTo= JavaType(String mysqlType)" method and then again FIELD_TYPE_FLOAT is map t= o Types.REAL in "mysqlToJavaType(int mysqlType)" method I have below question: Why FIELD_TYPE_FLOAT is mapped to Types.REAL, can it be mapped to Types.FLO= AT instead of Types.REAL? I am using mysql-connector-java-5.1.34.jar to connect mysql to java. Thanks Santlal J. Gupta **************************************Disclaimer***************************= *************** This e-mail message and any attachments may contain confide= ntial information and is for the sole use of the intended recipient(s) only= . Any views or opinions presented or implied are solely those of the author= and do not necessarily represent the views of BitWise. If you are not the = intended recipient(s), you are hereby notified that disclosure, printing, c= opying, forwarding, distribution, or the taking of any action whatsoever in= reliance on the contents of this electronic information is strictly prohib= ited. If you have received this e-mail message in error, please immediately= notify the sender and delete the electronic message and any attachments.Bi= tWise does not accept liability for any virus introduced by this e-mail or = any attachments. **********************************************************= ********************************** --_000_c9ab7e4448ec4a6393744334b5fb1c17EXCHSRV2bitwiseglobalne_--