Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

all but 6 tests are working now #107

  • Loading branch information...
commit 5f7c91427eb055f6a7ea114519b15812cfea617e 1 parent f8ca8f0
@nberardi nberardi authored
View
3  test/FluentCassandra.Tests/Bugs/Issue25JavaBigDecimalBinaryConversion.cs
@@ -1,5 +1,6 @@
using System;
using System.Linq;
+using FluentCassandra.Connections;
using Xunit;
namespace FluentCassandra.Bugs
@@ -10,7 +11,7 @@ public class Issue25JavaBigDecimalBinaryConversion : IUseFixture<CassandraDataba
public void SetFixture(CassandraDatabaseSetupFixture data)
{
- var setup = data.DatabaseSetup();
+ var setup = data.DatabaseSetup(cqlVersion: CqlVersion.Cql);
_db = setup.DB;
}
View
14 test/FluentCassandra.Tests/Operations/Cql3Test.cs
@@ -28,13 +28,13 @@ public void Dispose()
public void TestOverwritingOfUsersOnPrimaryKeys()
{
// arrange
- var insertQuery = @"INSERT INTO users (Id, Name, Email, Age) VALUES (23, '" + new String('X', 200) + "', 'test@test.com', 43)";
- var insertQuery2 = @"INSERT INTO users (Id, Name, Email, Age) VALUES (23, '" + new String('Y', 200) + "', 'test@test.com', 53)";
+ var insertQuery = @"INSERT INTO ""Users"" (""Id"", ""Name"", ""Email"", ""Age"") VALUES (23, '" + new String('X', 200) + "', 'test@test.com', 43)";
+ var insertQuery2 = @"INSERT INTO ""Users"" (""Id"", ""Name"", ""Email"", ""Age"") VALUES (23, '" + new String('Y', 200) + "', 'test@test.com', 53)";
// act
_db.ExecuteNonQuery(insertQuery);
_db.ExecuteNonQuery(insertQuery2);
- var actual = _db.ExecuteQuery("SELECT * FROM users");
+ var actual = _db.ExecuteQuery("SELECT * FROM \"Users\"");
// assert
Assert.Equal(6, actual.Count());
@@ -44,12 +44,12 @@ public void TestOverwritingOfUsersOnPrimaryKeys()
public void TestLinq()
{
// arrange
- var insertQuery = @"INSERT INTO users (Id, Name, Email, Age) VALUES (23, '" + new String('X', 200) + "', 'test@test.com', 43)";
+ var insertQuery = @"INSERT INTO ""Users"" (""Id"", ""Name"", ""Email"", ""Age"") VALUES (23, '" + new String('X', 200) + "', 'test@test.com', 43)";
// act
_db.ExecuteNonQuery(insertQuery);
- var table = _db.GetColumnFamily("users");
+ var table = _db.GetColumnFamily("Users");
var q = from row in table select row;
@@ -66,12 +66,12 @@ public void TestLinq()
public void TestLinq_CountDoNotWork()
{
// arrange
- var insertQuery = @"INSERT INTO users (Id, Name, Email, Age) VALUES (23, '" + new String('X', 200) + "', 'test@test.com', 43)";
+ var insertQuery = @"INSERT INTO ""Users"" (""Id"", ""Name"", ""Email"", ""Age"") VALUES (23, '" + new String('X', 200) + "', 'test@test.com', 43)";
// act
_db.ExecuteNonQuery(insertQuery);
- var table = _db.GetColumnFamily("users");
+ var table = _db.GetColumnFamily("Users");
var q = from row in table select row;
Please sign in to comment.
Something went wrong with that request. Please try again.