]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make the structure of the table specified before match the queries and results.
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 25 Jun 2010 20:17:37 +0000 (20:17 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 25 Jun 2010 20:17:37 +0000 (20:17 +0000)
(closes issue #17557)
 Reported by: cmaj

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272562 65c4cc65-6c06-0410-ace0-fbb531ad65f3

doc/voicemail_odbc_postgresql.txt

index 62250136539691829ff4677957c0036aace2dc37..0308104789e62b591fd8246544cfcdd6f44221f6 100644 (file)
@@ -252,7 +252,7 @@ CREATE TRIGGER vm_cleanup AFTER DELETE OR UPDATE ON voicemessages FOR EACH ROW E
 11) Just as a sanity check, make sure you check the voicemessages table via the
 isql utility.
 
-[jsmith2@localhost ODBC]$ echo "SELECT id, msgnum, dir, duration FROM voicemessages WHERE msgnum = 1" | isql testing
+[jsmith2@localhost ODBC]$ echo "SELECT uniqueid, msgnum, dir, duration FROM voicemessages WHERE msgnum = 1" | isql testing
 +---------------------------------------+
 | Connected!                            |
 |                                       |
@@ -262,7 +262,7 @@ isql utility.
 |                                       |
 +---------------------------------------+
 SQL> +------------+------------+---------------------------------------------------------------------------------+---------------------+
-| id         | msgnum     | dir                                                                             | duration            |
+| uniqueid   | msgnum     | dir                                                                             | duration            |
 +------------+------------+---------------------------------------------------------------------------------+---------------------+
 +------------+------------+---------------------------------------------------------------------------------+---------------------+
 SQLRowCount returns 0
@@ -370,9 +370,9 @@ Type:  \copyright for distribution terms
        \q to quit
 
 asterisk=# SELECT * FROM voicemessages;
- id | msgnum |                       dir                        | context | macrocontext |       callerid        |  origtime  | duration | mailboxuser | mailboxcontext | recording | label | read | sip_id | pabx_id | iax_id 
-----+--------+--------------------------------------------------+---------+--------------+-----------------------+------------+----------+-------------+----------------+-----------+-------+------+--------+---------+--------
- 26 |      0 | /var/spool/asterisk/voicemail/odbctest/101/INBOX | odbc    |              | "linksys" <linksys> | 1167794179 | 7        | 101         | odbctest       | 16599     |       | f    |        |         |       
uniqueid | msgnum |                       dir                        | context | macrocontext |       callerid        |  origtime  | duration | mailboxuser | mailboxcontext | recording | label | read | sip_id | pabx_id | iax_id 
+----------+--------+--------------------------------------------------+---------+--------------+-----------------------+------------+----------+-------------+----------------+-----------+-------+------+--------+---------+--------
      26 |      0 | /var/spool/asterisk/voicemail/odbctest/101/INBOX | odbc    |              | "linksys" <linksys> | 1167794179 | 7        | 101         | odbctest       | 16599     |       | f    |        |         |       
 (1 row)
 
 Did you notice the the recording column is just a number?  When a recording