Added Add Node capability
This commit is contained in:
@@ -48,9 +48,6 @@ abstract class lnApp_Database_TSM extends Database {
|
||||
public function set_charset($charset) {}
|
||||
public function list_tables($like = NULL) {}
|
||||
|
||||
// Required methods
|
||||
abstract protected function execute($sql);
|
||||
|
||||
/**
|
||||
* Return the caching defined in the current configuration.
|
||||
*
|
||||
@@ -90,7 +87,7 @@ abstract class lnApp_Database_TSM extends Database {
|
||||
if (isset($benchmark))
|
||||
Profiler::delete($benchmark);
|
||||
|
||||
SystemMessage::TSM('error',sprintf('%s (%s)',$this->execute_stdout,$this->execute_stderr),$sql);
|
||||
SystemMessage::TSM('danger',sprintf('%s (%s)',$this->execute_stdout,$this->execute_stderr),$sql);
|
||||
}
|
||||
|
||||
if (isset($benchmark))
|
||||
@@ -103,7 +100,7 @@ abstract class lnApp_Database_TSM extends Database {
|
||||
// Return an iterator of results
|
||||
return new Database_TSM_Result($result, $sql, $as_object, $params);
|
||||
elseif ($type === Database::INSERT)
|
||||
throw new Kohana_Exception('Database INSERTS are not supported');
|
||||
return new Database_TSM_Result($result, $sql, $as_object, $params);
|
||||
elseif ($type === Database::SHOW)
|
||||
return new Database_TSM_Show($result, $sql, $as_object, $params);
|
||||
elseif ($type === Database::SET)
|
||||
|
Reference in New Issue
Block a user