<p></p>
<p><b>@hazardv</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/dbsrgits/sql-translator/pull/143#discussion_r967339952">lib/SQL/Translator/Producer/Oracle.pm</a>:</p>
<pre style='color:#555'>> @@ -668,19 +655,20 @@ sub create_field {
push @trigger_defs, $trigger;
}
- if ( lc $field->data_type eq 'timestamp' ) {
- my $base_name = $table_name . "_". $field_name;
- my $trig_name = quote(mk_name( $base_name, 'ts' ), $qt);
- my $trigger =
- "CREATE OR REPLACE TRIGGER $trig_name\n".
- "BEFORE INSERT OR UPDATE ON $table_name_q\n".
- "FOR EACH ROW WHEN (new.$field_name_q IS NULL)\n".
- "BEGIN\n".
- " SELECT sysdate INTO :new.$field_name_q FROM dual;\n".
- "END;\n";
-
- push @trigger_defs, $trigger;
- }
+ # Do not create a trigger to insert sysdate to all timestamp fields
+ # if ( lc $field->data_type eq 'timestamp' ) {
</pre>
<p dir="auto">Fixed in commit <a href="https://github.com/dbsrgits/sql-translator/pull/143/commits/b14da74a5bb7e2e342e2651c6abfdf656e153128">b14da74</a></p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/dbsrgits/sql-translator/pull/143#discussion_r967339952">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AACJ4AT3N4M4LFRBDKCUTKTV5N3JTANCNFSM57BJTHFA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AACJ4ATK3L3CSPQ54KMPYDDV5N3JTA5CNFSM57BJTHFKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOIG5A3JA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><dbsrgits/sql-translator/pull/143/review/1102712228</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/dbsrgits/sql-translator/pull/143#discussion_r967339952",
"url": "https://github.com/dbsrgits/sql-translator/pull/143#discussion_r967339952",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>