From mhdi.fathipour at gmail.com Tue Jun 1 02:49:25 2021 From: mhdi.fathipour at gmail.com (Mehdi Fathipour) Date: Tue Jun 1 08:52:29 2021 Subject: [odb-users] persist problem Message-ID: Dear admin, I'm new to mysql and I have a problem using odb orm. I'd be so thankful if you could help me. I was build and generate odb.lib and odb-mysql.lib correctly, but when I use it to first 'hello' example, transaction has been established but I have an exception in persist like: "Got packet bigger than 'max_allowd_packet' bytes". I increased the value of 'max_allowd_packet' but I still have the same error. How can I solve this problem? Thank you. Regards From icewill9999 at vip.qq.com Tue Jun 22 03:26:07 2021 From: icewill9999 at vip.qq.com (=?gb18030?B?srvD99Xmz+A=?=) Date: Tue Jun 22 09:35:20 2021 Subject: [odb-users] how to blob an array of float in mysql with odb 2.4.0? Message-ID: Hi, Boris,  I have an array of float values and I need to store them into mysql BLOB column, I defined the mapping as below: typedef std::vector References: Message-ID: icewill9999@vip.qq.com writes: > Is it a bug of ODB 2.4.0 or I did something wrong? I believe there was a bug in this area. Can you try the latest pre-release as described in theses instructions and see if you still have this issue: https://codesynthesis.com/products/odb/doc/install-build2.xhtml From icewill9999 at vip.qq.com Wed Jun 23 00:22:22 2021 From: icewill9999 at vip.qq.com (=?gb18030?B?srvD99Xmz+A=?=) Date: Wed Jun 23 08:46:03 2021 Subject: =?gb18030?B?u9i4tKO6W29kYi11c2Vyc10gaG93IHRvIGJsb2Ig?= =?gb18030?B?YW4gYXJyYXkgb2YgZmxvYXQgaW4gbXlzcWwgd2l0?= =?gb18030?B?aCBvZGIgMi40LjA/?= In-Reply-To: References: Message-ID: FYI, I tried another solution you provided in the post [odb-users] Creating BLOBs out of vector/array of doubles? (codesynthesis.com), and the problems remains exactly the same. Regards, Wang ------------------ ???? ------------------ ???: "????" Message-ID: thanks for reply, we have a lot of codes developed on odb 2.4.0, are these codes compatible with the latest version? I need to assess the cost of the migration, thanks again. ????iPhone ------------------ Original ------------------ From: Boris Kolpackov References: Message-ID: icewill9999@vip.qq.com writes: > we have a lot of codes developed on odb 2.4.0, are these codes > compatible with the latest version? Yes, you shouldn't normally have any issues migrating from 2.4.0 to 2.5.0. Another alternative would be to look through the change log of libodb-mysql[1], try to locate the patch that presumably have fixed this issue, and backport it to 2.4.0. [1] https://git.codesynthesis.com/cgit/odb/libodb-mysql/log/