1. Hello,

    Code:
             String getLoc() {  
                    String ret = "noloc";            
    _sqLite.Query(Core.Database.Sql.Builder.Append("SELECT x,y,z FROM locations ORDER BY RANDOM() LIMIT 1;"), _sqLiteConnection, list =>
                {
                        foreach (var entry in list)
                        {
                          ret = (string)entry["x"] + "-" + (string)entry["y"] + "-" + (string)entry["z"];;                    
                          Puts(ret);
                        }
                });
                return ret;    
            }
    why return is all time "noloc" but in puts is select from db?
     
  2. Because SQL queries are concurrent.
     
  3. How rework it?
     
  4. By putting the logic that uses ret into the callback for the query.