We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 384a280 commit 05335dcCopy full SHA for 05335dc
test/db/jndi_mysql_config.rb
@@ -19,4 +19,11 @@
19
data_source.user = MYSQL_CONFIG[:username] if MYSQL_CONFIG[:username]
20
data_source.password = MYSQL_CONFIG[:password] if MYSQL_CONFIG[:password]
21
22
+# must set these to match non-jndi setup
23
+data_source.cache_default_timezone = false
24
+data_source.server_timezone = java.util.TimeZone.getDefault.getID
25
+data_source.use_legacy_datetime_code = false
26
+data_source.zero_date_time_behavior = 'convertToNull'
27
+data_source.jdbc_compliant_truncation = false
28
+
29
javax.naming.InitialContext.new.bind JNDI_MYSQL_CONFIG[:jndi], data_source
0 commit comments