]> git.ipfire.org Git - thirdparty/asterisk.git/commit
cel/cel_odbc: Provide microsecond precision in 'eventtime' column when possible
authorMatthew Jordan <mjordan@digium.com>
Sat, 15 Nov 2014 16:51:51 +0000 (16:51 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 15 Nov 2014 16:51:51 +0000 (16:51 +0000)
commit2f27faa0374af8e80fee0f9e02f74d80718bfb71
tree85fdbec055504850f8a769102813ebb8484cac34
parentd0495f4139f36079b2d3d6745f94f45646d2d36a
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)

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