Commit 4f6ed4f3 authored by Sachin Goyal's avatar Sachin Goyal

Setting the sql mode for the database session to 'STRCIT_ALL'.
This is to handle the database setting difference between mysql on Ops
and mysql on DataPository.
parent 5ebb54de
......@@ -92,6 +92,10 @@ if( $DBPWD =~ /^([\w]*)\s([\w]*)$/ ) {
my ($DB_data, $DB_sitemap);
TBDBConnect($DBNAME,$DBUSER,$DBPWD);
# set sql_mode to STRICT_ALL_TABLES to match it with
# dp database mode
DBQueryWarn("set SESSION sql_mode='STRICT_ALL_TABLES'");
my $socket_rcv = IO::Socket::INET->new( LocalPort => $port,
Proto => 'udp' );
#my $socket_snd = IO::Socket::INET->new( PeerPort => $sendport,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment