penghuazhou commented on issue #13089:
URL: 
https://github.com/apache/shardingsphere/issues/13089#issuecomment-945698622


   @TeslaCN 
   
   when will you fixed it ?
   
   import (
        "fmt"
        "gorm.io/driver/postgres"
        "gorm.io/gorm"
        "testing"
   )
   
   func TestShardingSphere(t *testing.T) {
        dsn := "host=10.1.80.167 user=sharding password=sharding 
dbname=sharding_db port=3307 sslmode=disable TimeZone=Asia/Shanghai"
        db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{})
        if err != nil {
                fmt.Println(err)
                return
        }
        var info string
        err2 := db.Debug().Raw("select info from t_order where order_id = ? and 
user_id = ?", 1206921609, 81031208).Scan(&info).Error
        if err2 != nil {
                fmt.Println(err2)
                return
        }
   }
   
   <img width="1386" alt="企业微信截图_def7b6a0-710c-44db-aa9c-36e382394ecc" 
src="https://user-images.githubusercontent.com/13001038/137727143-31a84eab-b791-48a1-9b48-d51d80443c41.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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to