0

Just want to know what are the corresponding datatype that I should declare when using DataMapper.

Types in MySQL

  • smallint
  • bit
  • varchar

Can anyone tell me the corresponding type in DataMapper?

Thanks.

Waiting for Dev...
  • 12,629
  • 5
  • 47
  • 57
revolver
  • 2,385
  • 5
  • 24
  • 40

1 Answers1

0

According to this site you are fairly limited with no specific equivalents. Varchar somewhat equals string and integer seems to take the place of bigint. Bit is not mentioned at all. The idea is born out further by this link (click on show source) where you will see the adapter for MySQL maps the data types similar to above. Again, bit is not mentioned.

ScottJShea
  • 7,041
  • 11
  • 44
  • 67
  • Thanks. Actually bit is my biggest concern. I am using Boolean for it but don't know if it's good enough. – revolver Feb 15 '12 at 05:34
  • I guess you could do some sort of bitwise process using a series of Boolean if it came to it but that seems a bit cumbersome. – ScottJShea Feb 15 '12 at 10:52