cel/cel_odbc: Provide microsecond precision in 'eventtime' column when possible
authorMatthew Jordan <mjordan@digium.com>
Sat, 15 Nov 2014 21:52:30 +0000 (21:52 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 15 Nov 2014 21:52:30 +0000 (21:52 +0000)
commit6993743b1fde28e0ad9ed6fe60a13595ba383036
treead1622fc1eb2d8c26ee6d4b53d392301d62da717
parentece61f5ed1c88f097535cdceb91ce3c80b98adfb
cel/cel_odbc: Provide microsecond precision in 'eventtime' column when possible

This patch adds microsecond precision when inserting a CEL record into a table
with an "eventtime" column of type timestamp, instead of second precision. The
documentation (configs/cel_odbc.conf.sample) was already saying that the
eventtime column included microseconds precision, but that was not the case.

Also, without this patch, if you had a table with an "eventtime" column of
type varchar, you had millisecond precision. With this patch, you also get
microsecond precision in this case.

Review: https://reviewboard.asterisk.org/r/3980

ASTERISK-24283 #close
Reported by: Etienne Lessard
patches:
  cel_odbc_time_precision.patch uploaded by Etienne Lessard (License 6394)
........

Merged revisions 427952 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 427953 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 427954 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@428010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
cel/cel_odbc.c