Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4930 มุมมอง

Hi Mates,
I think psql support var char and odoo has no such variable length fields. 
For a case,
Odoo docs defines: Char: A string of limited length. The required size parameter determines its size.
Where we can give its size as field attribute like size=30 .

But, I am looking for a field (Char / Text) where the size should be dynamic (Based on the value stored in it). I think this can save many reserved memory.
Any hints ?


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Odoo only uses varchar data types in the database, even though in your source code you specify it as a Char field. I did a search of all data types used in the database and there wasn't a single table column that had a data type of char.

อวตาร
ละทิ้ง
ผู้เขียน

Yes. You are correct. I checked with Pgadmin

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 24
8718
1
ก.พ. 24
1652
2
ต.ค. 23
6225
2
พ.ย. 22
6638
0
ก.ย. 21
2762