跳至內容
選單
此問題已被標幟
1 回覆
5250 瀏覽次數

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

相關帖文 回覆 瀏覽次數 活動
2
3月 24
9355
1
2月 24
2142
2
10月 23
6803
2
11月 22
7239
0
9月 21
3254