Subject: | strftime() appears to be broken |
I suppose this could be a user error, as I'm new to SQL. But I don't see how:
I get a null response when I try to use strftime(). But the corresponding time() function works as expected. (Same is true for the other named date/time functions.)
# sqlite3
SQLite version 3.7.5
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
Show quoted text
sqlite> select time( '1979-06-05 16:45:30' );
16:45:30
Show quoted textsqlite> select strftime( '%T', '1979-06-05 16:45:30' );
Show quoted textSQLite>
(Obviously, I want to use another format string in real life.)
This seems like a serious bug... Unless I'm really confused.