Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5296 Lượt xem

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 ?


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

Yes. You are correct. I checked with Pgadmin

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 24
9408
1
thg 2 24
2194
2
thg 10 23
6860
2
thg 11 22
7278
0
thg 9 21
3279