]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix sql typo
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 11 Aug 2011 18:01:52 +0000 (13:01 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 11 Aug 2011 19:15:26 +0000 (14:15 -0500)
src/switch_core_sqldb.c

index a55d3ee9054115f144fef12e541f9fc90d74c930..b23d082bdf081b6b2f0c77aa8d22fa6c8d827ba6 100644 (file)
@@ -1936,8 +1936,8 @@ switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_
                {
                        char *err;
                        switch_cache_db_test_reactive(dbh, "select call_uuid, read_bit_rate from channels", "DROP TABLE channels", create_channels_sql);
-                       switch_cache_db_test_reactive(dbh, "select * from detailed_calls", "DROP VIEW detailed_calls", detailed_calls_sql);
-                       switch_cache_db_test_reactive(dbh, "select * from basic_calls", "DROP VIEW basic_call", basic_calls_sql);
+                       switch_cache_db_test_reactive(dbh, "select * from detailed_calls where sent_callee_name=''", "DROP VIEW detailed_calls", detailed_calls_sql);
+                       switch_cache_db_test_reactive(dbh, "select * from basic_calls where sent_callee_name=''", "DROP VIEW basic_calls", basic_calls_sql);
                        if (runtime.odbc_dbtype == DBTYPE_DEFAULT) {
                                switch_cache_db_test_reactive(dbh, "select call_uuid from calls", "DROP TABLE calls", create_calls_sql);
                        } else {