mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
cql3: replace PRId32 with %d on sprint()
fixes #374 Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com>
This commit is contained in:
@@ -106,7 +106,7 @@ public:
|
||||
throw exceptions::invalid_request_exception(sprint("\"%s\" is not a valid keyspace name", _name.c_str()));
|
||||
}
|
||||
if (name.length() > schema::NAME_LENGTH) {
|
||||
throw exceptions::invalid_request_exception(sprint("Keyspace names shouldn't be more than %" PRId32 " characters long (got \"%s\")", schema::NAME_LENGTH, _name.c_str()));
|
||||
throw exceptions::invalid_request_exception(sprint("Keyspace names shouldn't be more than %d characters long (got \"%s\")", schema::NAME_LENGTH, _name.c_str()));
|
||||
}
|
||||
|
||||
_attrs->validate();
|
||||
|
||||
@@ -170,7 +170,7 @@ create_table_statement::raw_statement::raw_statement(::shared_ptr<cf_name> name,
|
||||
throw exceptions::invalid_request_exception(sprint("\"%s\" is not a valid table name (must be alphanumeric character only: [0-9A-Za-z]+)", cf_name.c_str()));
|
||||
}
|
||||
if (cf_name.size() > size_t(schema::NAME_LENGTH)) {
|
||||
throw exceptions::invalid_request_exception(sprint("Table names shouldn't be more than %" PRId32 " characters long (got \"%s\")", schema::NAME_LENGTH, cf_name.c_str()));
|
||||
throw exceptions::invalid_request_exception(sprint("Table names shouldn't be more than %d characters long (got \"%s\")", schema::NAME_LENGTH, cf_name.c_str()));
|
||||
}
|
||||
|
||||
for (auto&& entry : _defined_names) {
|
||||
|
||||
Reference in New Issue
Block a user