You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/07/07 07:51:48 UTC

[GitHub] [incubator-doris] mnloveyx opened a new issue #4037: doris can't get Decimals precision use com.mysql.jdbc.JDBC42 but mysql can get it

mnloveyx opened a new issue #4037:
URL: https://github.com/apache/incubator-doris/issues/4037


    PreparedStatement preparedStatement = null;
       try {
         preparedStatement =
             connection.prepareStatement( databaseMeta.stripCR( sql ), ResultSet.TYPE_FORWARD_ONLY,
                 ResultSet.CONCUR_READ_ONLY );
         preparedStatement.setMaxRows( 1 );
         ResultSetMetaData rsmd = preparedStatement.getMetaData();
   } catch ( Exception e ) {
         throw new Exception( e );
       } finally {
         if ( preparedStatement != null ) {
           try {
             preparedStatement.close();
           } catch ( SQLException e ) {
           }
         }
       }
   doris Decimals precision can't get it see 
   
   ![image](https://user-images.githubusercontent.com/20296448/86740451-3dd9bb80-c069-11ea-96d9-8a14aee79c31.png)
   
   
   mysql Decimals precision
   
   ![image](https://user-images.githubusercontent.com/20296448/86740575-58139980-c069-11ea-9632-33edd7f624b8.png)
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] yangzhg commented on issue #4037: doris can't get Decimals precision use java.sql.PreparedStatement com.mysql.jdbc.JDBC42 but mysql can get it

Posted by GitBox <gi...@apache.org>.
yangzhg commented on issue #4037:
URL: https://github.com/apache/incubator-doris/issues/4037#issuecomment-657998281


   this because of method `writeField` in `fe/src/main/java/org/apache/doris/mysql/MysqlSerializer.java` not write the `length` and `Decimals`,  could you fix this for us?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org