Need help clearing the schema cache I am checking of a particular field type in the schema using: 

drupal_get_schema('MY_FIELD');


I see in the database the field type is int, but when I check after:

$schema[$table]['fields']['MY_FIELD']['type'] 


is giving me always 'datetime'.

I assume is a cache issue: I am using: 

cache_clear_all('schema', 'cache');


but still no luck.
There are a few different cache entries for the schema, schema:, schema:runtime, schema:runtime:1, and so on.

To clear the lot, try using a wildcard:

cache_clear_all('schema', 'cache', TRUE);