original_string: protected function getDefaultConstraintName($xmldb_table, $xmldb_field) {
  
          // Get the quoted name of the table and field
          $tablename = $this->getTableName($xmldb_table);
          $fieldname = $xmldb_field->getName();
  
          // Look for any default constraint in this field and drop it
          if ($default = $this->mdb->get_record_sql("SELECT object_id, object_name(default_object_id) AS defaultconstraint
                                                       FROM sys.columns
                                                      WHERE object_id = object_id(?)
                                                            AND name = ?", array($tablename, $fieldname))) {
              return $default->defaultconstraint;
          } else {
              return false;
          }
      }
code: protected function getDefaultConstraintName($xmldb_table, $xmldb_field) {
  
          // Get the quoted name of the table and field
          $tablename = $this->getTableName($xmldb_table);
          $fieldname = $xmldb_field->getName();
  
          // Look for any default constraint in this field and drop it
          if ($default = $this->mdb->get_record_sql("SELECT object_id, object_name(default_object_id) AS defaultconstraint
                                                       FROM sys.columns
                                                      WHERE object_id = object_id(?)
                                                            AND name = ?", array($tablename, $fieldname))) {
              return $default->defaultconstraint;
          } else {
              return false;
          }
      }
code_tokens: protected function getDefaultConstraintName ( $ xmldb_table , $ xmldb_field ) { // Get the quoted name of the table and field $ tablename = $ this -> getTableName ( $ xmldb_table ) ; $ fieldname = $ xmldb_field -> getName ( ) ; // Look for any default constraint in this field and drop it if ( $ default = $ this -> mdb -> get_record_sql ( "SELECT object_id, object_name(default_object_id) AS defaultconstraint
                                                       FROM sys.columns
                                                      WHERE object_id = object_id(?)
                                                            AND name = ?" , array ( $ tablename , $ fieldname ) ) ) { return $ default -> defaultconstraint ; } else { return false ; } }
docstring: Given one xmldb_table and one xmldb_field, returns the name of its default constraint in DB
  or false if not found
  This function should be considered internal and never used outside from generator
  
  @param xmldb_table $xmldb_table The xmldb_table object instance.
  @param xmldb_field $xmldb_field The xmldb_field object instance.
  @return mixed
docstring_tokens: Given one xmldb_table and one xmldb_field returns the name of its default constraint in DB or false if not found This function should be considered internal and never used outside from generator