1-- Licensed to the Apache Software Foundation (ASF) under one 2-- or more contributor license agreements. See the NOTICE file 3-- distributed with this work for additional information 4-- regarding copyright ownership. The ASF licenses this file 5-- to you under the Apache License, Version 2.0 (the 6-- "License"). you may not use this file except in compliance 7-- with the License. You may obtain a copy of the License at 8-- 9-- http://www.apache.org/licenses/LICENSE-2.0 10-- 11-- Unless required by applicable law or agreed to in writing, 12-- software distributed under the License is distributed on an 13-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14-- KIND, either express or implied. See the License for the 15-- specific language governing permissions and limitations 16-- under the License. 17 18drop table if exists velocity_template_varchar; 19 20create table velocity_template_varchar 21( 22 vt_id VARCHAR(64) not null primary key, 23 vt_timestamp TIMESTAMP, 24 vt_def VARCHAR(255) not null 25); 26 27insert into velocity_template_varchar (vt_id, vt_timestamp, vt_def) VALUES 28 ( 'testTemplate1', current_timestamp, 'I am a test through the data loader'); 29 30insert into velocity_template_varchar (vt_id, vt_timestamp, vt_def) VALUES 31 ( 'testTemplate2', current_timestamp, '$tool.message $tool.add(23, 19)'); 32 33insert into velocity_template_varchar (vt_id, vt_def) VALUES 34 ( 'testTemplate3', 'This is a template with a null timestamp'); 35 36insert into velocity_template_varchar (vt_id, vt_timestamp, vt_def) VALUES 37 ( 'testTemplate4', current_timestamp, '#testMacro("foo")'); 38 39insert into velocity_template_varchar (vt_id, vt_timestamp, vt_def) VALUES 40 ( 'VM_global_library.vm', current_timestamp, '#macro (testMacro $param) I am a macro using $param #end'); 41 42 43-- same templates as clob 44 45drop table if exists velocity_template_clob; 46 47create table velocity_template_clob 48( 49 vt_id VARCHAR(64) not null primary key, 50 vt_timestamp TIMESTAMP, 51 vt_def CLOB not null 52); 53 54insert into velocity_template_clob select * from velocity_template_varchar; 55