~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/table_identifier.cc

  • Committer: Brian Aker
  • Date: 2010-11-27 13:38:27 UTC
  • mfrom: (1955.1.3 quick)
  • Revision ID: brian@tangent.org-20101127133827-fowoi26sizq1zneg
Rollup of staging, mostly UDL

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
{
31
31
  TableIdentifier identifier("test", "a");
32
32
  EXPECT_EQ("test/a", identifier.getPath());
33
 
  std::string path;
34
 
  identifier.getSQLPath(path);
35
 
  EXPECT_EQ("test.a", path);
 
33
  EXPECT_EQ("test.a", identifier.getSQLPath());
36
34
}
37
35
 
38
36
TEST(table_identifier_test_temporary, Create)
39
37
{
40
38
  TableIdentifier identifier("test", "a", message::Table::TEMPORARY);
41
39
  EXPECT_EQ("/#sql", identifier.getPath().substr(0, 5));
42
 
  std::string path;
43
 
  identifier.getSQLPath(path);
44
 
  EXPECT_EQ("test.#a", path);
 
40
  EXPECT_EQ("test.#a", identifier.getSQLPath());
45
41
}
46
42
 
47
43
TEST(table_identifier_test_internal, Create)
48
44
{
49
45
  TableIdentifier identifier("test", "a", message::Table::TEMPORARY);
50
46
  EXPECT_EQ("/#sql", identifier.getPath().substr(0, 5));
51
 
  std::string path;
52
 
  identifier.getSQLPath(path);
53
 
  EXPECT_EQ("test.#a", path);
 
47
  EXPECT_EQ("test.#a", identifier.getSQLPath());
54
48
}
55
49
 
56
50
TEST(table_identifier_test_build_tmptable_filename, Static)