protected boolean isCurrentDateTimeFunction ( String string , Database database ) { return string . toLowerCase ( Locale . US ) . startsWith ( "current_timestamp" ) || string . toLowerCase ( Locale . US ) . startsWith ( DatabaseFunction . CURRENT_DATE_TIME_PLACE_HOLDER ) || database . getCurrentDateTimeFunction ( ) . toLowerCase ( Locale . US ) . equals ( string . toLowerCase ( Locale . US ) ) ; }
Determines if the given function name refers to the function that returns the current time and date for a specific DBMS . Also returns true if the name returns the Liquibase wildcard CURRENT_DATE_TIME_PLACE_HOLDER which will later be translated into the appropriate function .