 
       record.fields["name"] == "record_load"
     end)
+  end
+
+  test "command/3: SELECT query with a WHERE clause" do
+    {:ok, c} = conn_db()
+
+    cmd = "SELECT FROM Schemaless WHERE name = 'record_load' LIMIT 1"
+    res = MarcoPolo.command(c, cmd, fetch_plan: "*:-1")
+
+    assert {:ok, [%MarcoPolo.Record{} = record]} = res
+    assert record.fields["name"] == "record_load"
   end
 
   defp conn_server do

defmodule MarcoPoloTest do
  use ExUnit.Case, async: true

  @db_name TestHelpers.db_name()


    assert is_integer(version)
  end

  test "command/3: SELECT query without a WHERE clause" do
    {:ok, c}       = conn_db()
    {:ok, records} = MarcoPolo.command(c, "SELECT FROM Schemaless", fetch_plan: "*:-1")

