Skip to content

Commit

Permalink
- Fix SQL query for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Mar 28, 2011
1 parent c9f2c47 commit 9556e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/indexcontacts.sh
Expand Up @@ -35,7 +35,7 @@ if (!$db->is_connected() || $db->is_error())
die("No DB connection\n"); die("No DB connection\n");


// iterate over all users // iterate over all users
$sql_result = $db->query("SELECT user_id FROM " . $RCMAIL->config->get('db_table_users', 'users')." WHERE 1"); $sql_result = $db->query("SELECT user_id FROM " . $RCMAIL->config->get('db_table_users', 'users')." WHERE 1=1");
while ($sql_result && ($sql_arr = $db->fetch_assoc($sql_result))) { while ($sql_result && ($sql_arr = $db->fetch_assoc($sql_result))) {
echo "Indexing contacts for user " . $sql_arr['user_id'] . "..."; echo "Indexing contacts for user " . $sql_arr['user_id'] . "...";


Expand Down

0 comments on commit 9556e00

Please sign in to comment.