SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Steve W. <wai...@us...> - 2001年11月02日 05:07:56
Update of /cvsroot/phpwiki/phpwiki/admin
In directory usw-pr-cvs1:/tmp/cvs-serv13508/admin
Added Files:
 Tag: release-1_2-branch
	translate_mysql.pl 
Log Message:
Missed these but they will be in the 1.2.2 release. Code for Microsoft
SQL Server.
--- NEW FILE ---
# Convert MySQL wiki database dump to a Microsoft SQL-Server compatible SQL script
# NB This is not a general-purpose MySQL->SQL-Server conversion script
# Author: Andrew K. Pearson
# Date: 01 May 2001
# Example usage: perl translate_mysql.pl dump.sql > dump2.sql
# NB I did not use sed because the version I have is limited to input lines of <1K in size
while (<>)
{
	$newvalue = $_;
	$newvalue =~ s/\\\"/\'\'/g;
	$newvalue =~ s/\\\'/\'\'/g;
	$newvalue =~ s/\\n/\'+char(10)+\'/g;
	$newvalue =~ s/TYPE=MyISAM;//g;
	$newvalue =~ s/int\(.+\)/int/g;
	$newvalue =~ s/mediumtext/text/g;
	$newvalue =~ s/^#/--/g;
	print $newvalue;
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /